AggrorJorn Posted July 30, 2013 Share Posted July 30, 2013 Most math API's have a floor and ceiling function. Either I am blind or it is just not there. The command Math::Round returns the closest integer but you can not ask specify in which direction the value should be rounding of towards to. http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/math/mathround-r597 Quote Link to comment Share on other sites More sharing options...
Rastar Posted July 30, 2013 Share Posted July 30, 2013 Should there, I agree, but maybe you can be do it yourself using Floor = Round(x-0.5) and Ceiling = Round(x+0.5) Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted July 30, 2013 Author Share Posted July 30, 2013 Yeah I have my own thing as well, just thought it might be a nice addition to the Math API. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.