Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - flr(<expn>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FLR(<expN>)
 Obtains an integer less than <expN>.
 Returns <expN> integer just below <expN> parameter.

 Useful when both positive and negative numbers must
 round in the same direction.

 Named FLR() instead of FLOOR() to prevent conflict with
 C Compiler's floor() function.

 FLR(  2.1 ) returns  2
 FLR(   .3 ) returns  0
 FLR( -0.3 ) returns -1
 FLR( -2.9 ) returns -3

 * Evaluate number of completed units
 n = <variable number to count total parts used>
 parts = 60     && parts per complete unit
 no_units = FLR( n / parts )


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: CEILING()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson