HP Forums

Full Version: Formatted output
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Is it posible to format the results of the calculation in HP Prime basic?
(tabs, formatted output of numerical results etc.)

Thanks for any help.

Jan Kromhout
Hellevoetsluis-NL
(04-06-2015 10:30 AM)Powersoft Wrote: [ -> ]Is it posible to format the results of the calculation in HP Prime basic?
(tabs, formatted output of numerical results etc.)

In Home, type "string" (without the quotes) then press Help. You'll see the help screen for the STRING command, which contains many formatting options. For example, STRING(pi,2,4) yields "3.1416" because the 2 means "use Fixed display mode" and the 4 means "round to 4 decimal places". You can also specify the decimal point, the digit grouping character, and other stuff.

Personal opinion: tab characters behave unpredictably when exported, so I'd suggest using spaces instead.
Perhaps the format(Real,String) command may be useful. Check on-calc help for description.
(04-07-2015 11:00 AM)DrD Wrote: [ -> ]Perhaps the format(Real,String) command may be useful. Check on-calc help for description.

I tried it a few months ago and it didn't work in Home.
Think maybe only CAS
Reference URL's