Notifications
Clear all

[Closed] rounding numbers

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

http://forums.cgsociety.org/showpost.php?p=6184517&postcount=4

so there isn’t actually a predefined method to do this.

thanks for the function.

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

there are several…
float as integer
floor (<float> + 0.5)

but this one is the right one