SyntaxFix
Write A Post
Hire A Developer
Questions
Math.Floor() rounds toward negative infinity
Math.Floor()
Math.Truncate rounds up or down towards zero.
Math.Truncate
For example:
Math.Floor(-3.4) = -4 Math.Truncate(-3.4) = -3
while
Math.Floor(3.4) = 3 Math.Truncate(3.4) = 3