HP Forums
Can't make format() work - 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: Can't make format() work (/thread-7800.html)



Can't make format() work - toml_12953 - 02-19-2017 10:17 PM

In examples I've seen

format(9.3456,"s3")

should show 9.35 in algebraic mode but All I get is syntax error. Since format is in lower case, I also tried

CAS.format(9.3456,"s3")

with the same result. How do you use the format function? Also, how do I set fixed decimal mode from an HPPL program?

Tom L


RE: Can't make format() work - StephenG1CMZ - 02-19-2017 11:57 PM

It needs CAS(format(9.3456,"s3")), not CAS.format.
Just checked and its still OK on the new release on Android.

http://www.hpmuseum.org/forum/thread-6475.html?highlight=format


RE: Can't make format() work - toml_12953 - 02-20-2017 02:11 AM

(02-19-2017 11:57 PM)StephenG1CMZ Wrote:  It needs CAS(format(9.3456,"s3")), not CAS.format.
Just checked and its still OK on the new release on Android.

http://www.hpmuseum.org/forum/thread-6475.html?highlight=format

Boy am I getting old! I even replied to that thread! :0

Tom L