Page 1 of 1

Round() bug?

Posted: Fri May 27, 2011 8:47 am
by Allanon
Hi Andreas,
I'm not sure is this is a bug or only a limitation but executing:

Round(3000000000)

returns
2147483647

In general passing big values Round() fails giving lower results

Re: Round() bug?

Posted: Sat May 28, 2011 12:10 pm
by airsoftsoftwair
It's a limitation. Round() returns the result as a signed 32-bit integer so -2147483648/2147483647 are the limits here. This limitation could be easily removed on the modern platforms but it's more difficult on AmigaOS3 so I'm currently keeping it.

Re: Round() bug?

Posted: Sat May 28, 2011 12:18 pm
by Allanon
Ok, thank you for the confirm :)
Anyway I've used a workaround to achieve the needed result