HP Forums

Full Version: Can't make format() work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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-647...ght=format
(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-647...ght=format

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

Tom L
Reference URL's