03-18-2016, 12:59 PM
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?
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?