Post Reply 
Can't make format() work
02-19-2017, 10:17 PM
Post: #1
Can't make format() work
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

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
02-19-2017, 11:57 PM
Post: #2
RE: Can't make format() work
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

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
02-20-2017, 02:11 AM
Post: #3
RE: Can't make format() work
(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

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)