float to int
Posted: Thu Feb 22, 2024 9:38 am
Hi all,
I understand that unrealscript will coerse float values to int if you do something like :
However what arrived in i? Does it round up, round down, or just ignore the fractional part?
Are there any convenient functions that can force the issue?
Cheers.
Phill.
I understand that unrealscript will coerse float values to int if you do something like :
Code: Select all
var int i;
var float f;
f = 5.7;
i = f;
Are there any convenient functions that can force the issue?
Cheers.
Phill.