Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel Floor function

Tags:

function

excel

I am confused regarding excel floor function. Mathematically, floor (x) is the largest integer not greater than x. Following this definition, I expected, Floor( -3,-2) to display -4 , but it displays -2. Can somebody explain why?

like image 352
TimeToCodeTheRoad Avatar asked Oct 25 '25 20:10

TimeToCodeTheRoad


1 Answers

This might help:

FLOOR function - Rounds a number down, toward zero

FLOOR.PRECISE function - Rounds a number down to the nearest integer or to the nearest multiple of significance. Regardless of the sign of the number, the number is rounded down.

=FLOOR(-3,-2) is -2
=FLOOR.PRECISE(-3,2) is -4
like image 107
zx8754 Avatar answered Oct 27 '25 13:10

zx8754