Scientific Notation - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Scientific Notation (/thread-664.html) |
Scientific Notation - BruceTTT - 02-13-2014 01:16 AM Anyone with recommendations for a simple program to convert a number to scientific notation (and vice versa)? RE: Scientific Notation - CR Haeger - 02-13-2014 02:17 AM I think shift setup lets you switch numeric setup. RE: Scientific Notation - rprosperi - 02-13-2014 03:28 AM Scientific notation is just a display format, it does not change a number, so you really don't convert a number you just tell Prime how to display a number that way. No program is needed. From Home view, press [blue-Shift] [Settings] (the Home key) to enter the Home Settings screen. Tap the 2nd list down (probably set to Standard display)and pick Scientific Number Format, then tap the narrow list that appears to the right of the Number Format list to specify the number of places to be displayed the right of the decimal mark. Press Esc to exit the Settings screen and save your settings. Note that if you use CAS mode, you have to make analogous settings in the CAS Settings screen. CAS and Home modes have indepent display settings. Also, you can specify the Display Format from within almost every App to unique settings for that app, or you can leave it to the dafault of using the System setting (meaning the one you set in the Home settings.) RE: Scientific Notation - BruceTTT - 02-13-2014 04:46 AM Thanks, I should have explained better. I want a convenient way of displaying the last number on the stack in sci notation. For example, if the answer is 245718362524.23, a quick keystroke to convert (and backwards) would be nice rather than counting the digits manually or changing the display mode for everything. RE: Scientific Notation - rprosperi - 02-13-2014 06:12 PM You can create a short toggle program and assign it to a convenient key. Here is an example, from tips I found here in the forums. Code: // Toggle btwn Standard and Scientific-4 Display format RE: Scientific Notation - BruceTTT - 02-14-2014 04:52 AM This works pretty good except that it changes all the numbers on the stack. I tried commenting out HDigits line so the decimals will be dynamic, didn't work. Any way to allow the digits after the decimal to work like the other HP calculators only show non-zero numbers after the decimal? RE: Scientific Notation - massimo - 02-14-2014 04:16 PM (02-14-2014 04:52 AM)BruceTTT Wrote: the other HP calculators only show non-zero numbers after the decimal? The old RPN calculators show the zeros. RE: Scientific Notation - Terje Vallestad - 02-22-2014 01:58 PM (02-13-2014 06:12 PM)rprosperi Wrote: You can create a short toggle program and assign it to a convenient key. Rob, whilst i may have posted this trick on the forum, it originated from a guy called Toby who posted it on comp.sys.hp48. Still a good trick though. Cheers, Terje RE: Scientific Notation - JimS - 02-23-2014 11:09 PM Hi Bruce' If you are only interested in the number of digits you can just take the LOG of the nunber and add 1. If you really want or need scientific output use the format command from the catalog. hope this helps. jim |