Solved Rounding an integer

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Aralwen

Active Member
May 26, 2017
164
14
18
25
Hello,
I am trying to round up a number by doing the command /mid it displays the distance between a predefined position, for example it shows 19.61.I would like it to take the nearest integer, in this case would like it to show 20.

Skript :

code_language.skript:
command /setmid:
    trigger:
        set {Mid} to player's location

command /mid:
    trigger:
        set {MidPos.%player%} to distance between player and {Mid}
        send "%{MidPos.%player%}%"


Thank's for help


Skript Version: 2.2
Skript Author: ?
Minecraft Version: 1.8.8


Errors on Reload : Nothing
Console Errors : Nothing


Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums ? Yes
 
Status
Not open for further replies.