Jump to content

Round float.


keymetaphore

Recommended Posts

Hello, i've got a small issue now.

I am creating a dx box with some things up, and included player health. 

The problem is that when your health gets reduced, it's like 90.41415236923 ( not a int )

How to remove decimals? I tried to use  the math.round from useful functions, but got a strange error.

When outputting I used tonumber()

Link to comment

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...