Post Reply 
The "format" command
03-18-2016, 12:59 PM
Post: #1
The "format" command
I hope this doesn't turn out to be a "RTFM" style response. I'm new to prime (but love it) and am a die hard HP calculator user with well over 30 years of use under my belt. I've thus far written some nice little calculator program utilities on the PRIME, and have been exploring MSGBOX and INPUT without any problems.

The calculator firmware is up to date. Its a "A" revision hardware model using software build 8151.

But... I'm stumbling on the "format" program command and I can't find any reference to it in the forum.

EXPORT FormatTest()
BEGIN
LOCAL s;
s := format( 9.345, "s3" );
MSGBOX( s );
END;

I'd expect to get "9.34" in the msgbox output. Instead I get a msgbox output stating...

"format(9.345,s3 )
Error: Bad Argument Value"

The program won't compile if I use "FORMAT" and the case of the "S3" string doesn't make any difference".

Does anyone have any idea what I'm doing wrong or if the format command even works?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
The "format" command - Moonwatcher - 03-18-2016 12:59 PM
RE: The "format" command - Didier Lachieze - 03-18-2016, 02:57 PM
RE: The "format" command - Moonwatcher - 03-18-2016, 03:54 PM



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