Decimal points to whole numbers in Eos
Posted: Sat May 01, 2021 2:40 pm
Hi everyone!
In the tease I'm making at the moment I have a user defined point value being multiplied by a random factor of 0.1, 0.2, 0.3 etc. up to 1.9.
It works totally fine for multiples of 10, but otherwise it can result in non-whole numbers, especially when done more than once as is the intention (after a few tries it can result in over 10 decimal places).
Is there a way to round up (or down) this value to the nearest whole number?
If that's not possible, can I make a user input accept only multiples of 10?
Hope you guys can help!
In the tease I'm making at the moment I have a user defined point value being multiplied by a random factor of 0.1, 0.2, 0.3 etc. up to 1.9.
It works totally fine for multiples of 10, but otherwise it can result in non-whole numbers, especially when done more than once as is the intention (after a few tries it can result in over 10 decimal places).
Is there a way to round up (or down) this value to the nearest whole number?
If that's not possible, can I make a user input accept only multiples of 10?
Hope you guys can help!