HP Prime: Converting number to Sci notation and back



#3

Is there a simple way to convert a floating point to scientific notation and the reverse as well? (IOW a sic notation method like the a b/c button).


#4

One method, maybe not what you are looking for, is make a user key program to change the global HFormat setting. Whatever key you pick (in this case EEX) will cycle through the formats, you could easily make it cycle through only the formats you want. It updates any numbers on the stack/history as well. The STARTVIEW lines are just a way to get the screen to update, RETURN 5 returns a HOME key press which is the way I have found to "not do anything extra". The only problem I know with this method is it will take you to the home screen as it switches modes. Also some keys don't let you re-assign them.

KEY K_Eex()
BEGIN
HFormat:=(HFormat+1) MOD 4;
STARTVIEW(-8,0);
STARTVIEW(-1,1);
RETURN 5;
END;

or an alternative

KEY K_Eex()
BEGIN
IF HFormat == 0 THEN
HFormat := 2;
ELSE
HFormat := 0;
END;
STARTVIEW(-8,0);
STARTVIEW(-1,1);
RETURN 5;
END;

(To make a User Key just put those lines in any program listing, substitute for K_Eex the key you want to use, and then SHIFT->Help(User) + EEX)
(Or lock User keys with SHIFT->Help(User) twice)


Possibly Related Threads…
Thread Author Replies Views Last Post
  A fast Bernoulli Number method for the HP Prime Namir 16 5,389 11-22-2013, 04:46 PM
Last Post: Namir
  Complex Number Entry on Prime Jeff O. 19 5,037 11-16-2013, 12:34 PM
Last Post: Jeff O.
  [HP Prime] Calculating Prandtl Number with Units (bug found in USIMPLIFY) Timothy Roche 1 1,330 11-13-2013, 04:07 PM
Last Post: cyrille de Brébisson
  Converting Great Circle Navigation from 41C to 42S Bill Triplett 11 3,388 11-13-2013, 07:24 AM
Last Post: Kimberly Thompson
  HP PRIME: Fixed 4 number format 0.001000 Joseph Ec 18 5,202 11-07-2013, 11:51 AM
Last Post: Geoff Quickfall
  HP Prime: Number of external Variables Davi Ribeiro de Oliveira 0 985 11-01-2013, 08:10 PM
Last Post: Davi Ribeiro de Oliveira
  Line number in Prime program listings Harold A Climer 3 1,857 10-27-2013, 03:37 PM
Last Post: Les Koller
  Prime Program number of set bits kris223 3 1,832 10-23-2013, 03:05 PM
Last Post: David Hayden
  WP-34S (Prime Number Test) question Barry Mead 3 1,692 10-20-2013, 05:28 PM
Last Post: Dieter
  Prime emulator number keys kris223 3 1,732 10-19-2013, 10:57 PM
Last Post: kris223

Forum Jump: