I'm trying to write a macro that rounds numbers. The code asks users for a number, and the macro rounds to 2 after the decimal place. First of all, I'd like to know if Isodraw has a built in round function. That would save me some time. I searched the 7.2 IML Reference (even though I'm using 7.3 because I can't seem to get access to 7.3 IML) and there didn't seem to be a built in round function. Nonetheless I proceeded to write a rounding submacro which takes a user input for a number and rounds the 2nd digit after the decimal. However I noticed that my numbers were often altered after I input them. And so I used this text macro to test it:
macro numtest
define number as float
define numasstring as string
number = get float "Number"
numasstring = number
message numasstring
end macro
When I input 8.591, I get 8.59.
Similarly,
8.592 --> 8.592
8.593 --> 8.593
8.594 --> 8.593
8.595 --> 8.595
8.596 --> 8.596
8.597 --> 8.596
8.598 --> 8.598
8.599 --> 8.599
8.600 --> 8.599
It seems like the resolution of Isodraw's numbers are set somewhere. Why does Isodraw do this, and how can I change the resolution / accuracy of the numbers?