Round() bug?

Report any Hollywood bugs here
Post Reply
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Round() bug?

Post 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
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Round() bug?

Post 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.
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: Round() bug?

Post by Allanon »

Ok, thank you for the confirm :)
Anyway I've used a workaround to achieve the needed result
Post Reply