Hello Erel
In the german forum Bobbes asked some help about the Round function and got an answer from specci48.
http://www.b4x.com/forum/showthread.php?t=1048
In his answer I wondered that the Round function works like
if > 5 then round up
else round down
Round(4.5,0) > 4
in my mind it should work like
if>=5 then round up
else round down
Round(4.5,0) > 5
as it does with the Format function.
I tried it in VisualBaisc it's the same.
Is there any reason for this behaviour.
I have joined a small example to show the difference.
Best regards
Klaus
Switzerland
In the german forum Bobbes asked some help about the Round function and got an answer from specci48.
http://www.b4x.com/forum/showthread.php?t=1048
In his answer I wondered that the Round function works like
if > 5 then round up
else round down
Round(4.5,0) > 4
in my mind it should work like
if>=5 then round up
else round down
Round(4.5,0) > 5
as it does with the Format function.
I tried it in VisualBaisc it's the same.
Is there any reason for this behaviour.
I have joined a small example to show the difference.
Best regards
Klaus
Switzerland