Post Reply 
ROUND instruction not working as expected
05-01-2016, 01:57 AM
Post: #6
RE: ROUND instruction not working as expected
My virtual calculator is set to fix 4 as the display setting. I was displaying the rounded value in an INPUT statement, but this code displays the rounded value the same way as the INPUT statement.
This is the code:

EXPORT roundfail()
BEGIN
LOCAL fail;
fail:=1.23456;
fail:=ROUND(fail,2);
END;

In the above example:
The previous firmware version would display 1.23
The present version firmware displays 1.2300

Hope this makes it more clear.
rcf
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ROUND instruction not working as expected - Bob Frazee - 05-01-2016 01:57 AM



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