Notifications
Clear all
[Closed] rounding numbers
Jun 08, 2011 2:01 am
hello,
Is there a way to round numbers like if the number is 3.3 result should be 3 but if it’s 3.7 the result should be 4.
the help mentions floor and ceil which isn’t what I want, I want a mix of them.
sorry if it’s a newbie question but I don’t use maxscript that much.
3 Replies
Jun 08, 2011 2:01 am
so there isn’t actually a predefined method to do this.
thanks for the function.
1 Reply
there are several…
float as integer
floor (<float> + 0.5)
…
but this one is the right one