Difference between revisions of "Floor function"
m |
|||
Line 1: | Line 1: | ||
− | The greatest integer function, also known as the '''floor function''', gives the greatest integer less than or equal to its argument. The floor of <math>x</math> is usually denoted by <math>\lfloor x \rfloor</math> or <math>[x]</math>. Note that this function is ''not'' the same as rounding or "dropping the decimal | + | The greatest integer function, also known as the '''floor function''', gives the greatest integer less than or equal to its argument. The floor of <math>x</math> is usually denoted by <math>\lfloor x \rfloor</math> or <math>[x]</math>. Note that this function is ''not'' the same as rounding or "dropping everything after the decimal point" in general. |
For example: | For example: | ||
Line 7: | Line 7: | ||
*<math>\lfloor 5 \rfloor = 5</math> | *<math>\lfloor 5 \rfloor = 5</math> | ||
− | *<math>\lfloor -2 | + | *<math>\lfloor -3.2 \rfloor = -4</math> |
==See Also== | ==See Also== |
Revision as of 11:46, 29 June 2006
The greatest integer function, also known as the floor function, gives the greatest integer less than or equal to its argument. The floor of is usually denoted by or . Note that this function is not the same as rounding or "dropping everything after the decimal point" in general.
For example: