algiuxas Posted January 10, 2016 Share Posted January 10, 2016 (edited) Hello,I need help, I need to find nearest real numbers, could somebody find function if it exists(or write it)?Examples: 1.25 output would be 1 and 2 31.123 output would be 31 and 32 24 output would be 24 100.01 output would be 100 and 101Thanks! Edited January 10, 2016 by algiuxas After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
Exit Posted January 10, 2016 Share Posted January 10, 2016 $n = 45.7 $f = Floor($n) $c= Ceiling($n) MsgBox(64 + 262144, Default, $n & @CRLF & $f & @CRLF & $c, 0) algiuxas 1 App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
algiuxas Posted January 10, 2016 Author Share Posted January 10, 2016 $n = 45.7 $f = Floor($n) $c= Ceiling($n) MsgBox(64 + 262144, Default, $n & @CRLF & $f & @CRLF & $c, 0) Thank you! Exit 1 After switching years ago to Linux, sadly I don't use AutoIt anymore. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now