Jump to content

Remove decimals


megaman54

Recommended Posts

Hi! I made some uptime counter wich works perfectly but it outputs too much decimals.

Currently it says like this:

  • --- Server online time ---
    Hours: 6.8224047222222
    Minutes: 409.34428333333
    --- Server online time ---

But i want it to be like this instead:

  • --- Server online time ---
    Hours: 6
    Minutes: 409
    --- Server online time ---

Is there a code snippet to do this? Or some other way maybe?

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