Jump to content
Sign in to follow this  

[SOLVED] Closest real numbers

Recommended Posts



I need help, I need to find nearest real numbers, could somebody find function if it exists(or write it)?

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 101


Edited by algiuxas


Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this