10 Replies
Like with basic math
If you have a decimal number 0-1, just multiply by 100
so if i have 15% i made 15*100
?
I've got this problem and i tried different things like Total*10/15 . Was work it until it didn't make it when i whrite 4,3,1,2. It answered 8 but i need 7
i just need to know how to write the formula and that's all
15/100 is 0, because that's doing integer division. If you're working with decimal, you probabli want
15m/100m
, which does decimal division between two decimal numbersToshiya Joshima#3472
REPL Result: Success
Result: int
Compile: 331.142ms | Execution: 65.189ms | React with ❌ to remove this embed.
Toshiya Joshima#3472
REPL Result: Success
Result: decimal
Compile: 375.399ms | Execution: 17.944ms | React with ❌ to remove this embed.
thanks
Jester#8471
REPL Result: Success
Result: string
Compile: 518.768ms | Execution: 33.778ms | React with ❌ to remove this embed.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.