So I’m trying to round a float using Ceil() (rounding upwards). But it gives me this error and I don’t know how to fix that, can someone help? Tia
Ceil[]
is a failable function because it <decides>
you have to call it using brackets.
Why is it failable ? I have really no clue, maybe if you ask it to Ceil() to the int
limit it would fail ?
if(MyCeiledNumber := Ceil[MyNumber]):
# do things
1 Like
It’s because Inf
, -Inf
, and NaN
are floats but not valid integers
2 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.