Jump to content

math funcs


Desaster

Recommended Posts

Posted

hello ,

I am useing this following math functions but I always use them but idk what they do exactly I readed it's description but I didn't understand nothing can s.o help me with an example that shows you the result ?

math.floor 
       math.ceil 

Posted

It's really simple, math.floor(5.4212) would turn 5.4212 in simply 5.

Math.ceil(5.4212) would turn 5.4212 into 6. It just rounds the numbers. Math.ceil goes to the first upper integer, math.floor goes to the first lower integer. Feel free to ask me again if you still don't understand.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...