Hi all
i dont want to make this a long read for you
so basically lets say i have a value of 30
multiplied by 1.15
gives us the result of 34.5 which works extremly fine
but the point is i dont want that ".5" , i want it to be removed
any help ?
Develop games in your browser. Powerful, performant & highly capable.
You can use:
round()
ceil()
floor()
put the expression between the brackets.
You can use: round() ceil() floor() put the expression between the brackets.
OP,
round() is same as the thing you studied in Gr7 maths.
Ceil() rounds up.eg:ceil(5.1) would give 6.
floor() rounds down eg:floor(5.9) would give 5.
int() does the job too.