• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Problem with Reals; Problem with Round

Status
Not open for further replies.
Level 17
Joined
Apr 13, 2008
Messages
1,597
Hi, I want to stuff reals into multiboards but I don't want to see something like this in my multiboard: "52.76812...."
I want the real to have only one decimal after the "." So it should look like this: 52.7*
I haven't found a function or syntax which does this so I had to solve this with a custom function that multiplies it by ten converts it to integer and does funny things with it.
My first question is: is my custom function necessary or is there a way to do this with default functions/syntaxes?

The other thing is. I haven't found a round function either. I had to make one for that too.
So that's my second question.
 
Status
Not open for further replies.
Top