[Gambas-user] rounding a half
Brought to you by:
gambas
From: wig <wi...@no...> - 2024-12-09 12:18:58
|
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 |