Sign in to follow this  
Followers 0
algiuxas

[SOLVED] Closest real numbers

3 posts in this topic

#1 ·  Posted (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 101

Thanks!

Edited by algiuxas

42783.png

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  
Followers 0