patrickokeeffe Posted December 4, 2020 Share Posted December 4, 2020 I'm working in DF18 and reading the DF17.1 user manual. Feeling a little silly I can't find any rounding-related functions except for "CEIL" and "FLOOR". Is there really no function for nearest number rounding? I have to compute the nearest integer instead? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted December 5, 2020 Share Posted December 5, 2020 You just add 0.5 and do floor(). So for the nearest integer it is just: floor(value + 0.5) Quote Link to comment Share on other sites More sharing options...
patrickokeeffe Posted December 5, 2020 Author Share Posted December 5, 2020 OK yes that will work fine. Thank you! 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.