Fixed [2.1.17] FixedRound Always Returns 2147483647

Status
Not open for further replies.

Sryder

'That brit'
Kart Krew™️
Code:
print(FixedRound(FRACUNIT))
prints 2147483647 for example.
 
Last edited by a moderator:

Monster Iestyn

Fangtastic
Sonic Team Junior
Kart Krew™️
It appears the mistake is in how the function calculates the fractional part of the number supplied, and that the same mistake also applies to the FixedFloor, Ceil and Trunc functions.

It's quite obvious how little we've used these functions ourselves I take it.
 

Monster Iestyn

Fangtastic
Sonic Team Junior
Kart Krew™️
Sryder's merge request was added to next a few days ago so this can be marked as fixed now.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Top