POSITION:028,114
COLOUR:STANDARD
TEXT:00,If you are working with floating point numbers and want to convert that
TEXT:16,value to an integer, one way to do it is to use the floor() library
TEXT:16,routine:
COLOUR:EUPHORIA
TEXT:32,   = floor( )
COLOUR:POINTS
TEXT:00,ro         o
COLOUR:STANDARD
TEXT:32,floor() takes any data object,  ,  and rounds it down to the nearest
COLOUR:POINTS
TEXT:00,                               o
COLOUR:STANDARD
TEXT:16,integer value. If   is a sequence, each atom element in that sequence is
COLOUR:POINTS
TEXT:00,                  o
COLOUR:STANDARD
TEXT:16,rounded down to the nearest integer value.
TEXT:32,Understand that using floor() is not the same as chopping the decimal
TEXT:16,fraction part off a value. While examples like floor(64.55) or
TEXT:16,floor({32.1, 56.87, 2.044}) would result in truncation (64 and
TEXT:16,{32, 56, 2}), floor(-55.3) and floor({-1.3, -0.5}) would return -56
TEXT:16,and {-2,-1}, respectively. If floor() receives an integer, that same
TEXT:16,value is returned. A demo program is ready to show examples of floor().

