As I understand floor functions:
$\lfloor (-0.5)\rfloor = -1$
while
$-\lfloor(0.5)\rfloor = -0 = 0$
Am I understanding floor functions correctly?
As I understand floor functions:
$\lfloor (-0.5)\rfloor = -1$
while
$-\lfloor(0.5)\rfloor = -0 = 0$
Am I understanding floor functions correctly?
Yes, you are correct. Wikipedia and Mathworld agree (you can look at the graphs there). Be careful, though: There's a small chance that some programming language will have floor defined incorrectly for negative inputs.