• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Problem with Reals; Problem with Round

Status
Not open for further replies.
Level 17
Joined
Apr 13, 2008
Messages
1,608
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