On 12/9/24 06:58, wig wrote:
I would think that rounding a half would always react the same, either
up or down;

f = 1.015

Print "Round(" & f & ", -2) = " & Round(f, -2)

Result:

Round(1.015, -2) = 1.02

f = 1.055

Print "Round(" & f & ", -2) = " & Round(f, -2)

Round(1.055, -2) = 1.05

What should I expect?

I used Gambas 3.18.4

System info see attach

Kind greetings,

Wig

Strange indeed.

But, you posted the message to the old, deprecated mailing list. Please post to 
the new list, u...@lists.gambas-basic.org.
If needed, subscribe at https://lists.gambas-basic.org/#user or send a blank 
email to user+subscr...@lists.gambas-basic.org.


--
Lee


_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to