Type in a command, or "ls dictionary" to search all commands for "dictionary", etc.

rounddown

ifThen -value1 ${val} -value2 0 -test GREATEREQUAL -then {ifThen -value1 ${val} -value2 {round ${val} -precision ${prec}} -test LESS -then {subtract {round ${val} -precision ${prec}} {correction ${prec}}} -else {round ${val} -precision ${prec}}} -else {ifThen -value1 ${val} -value2 {round ${val} -precision ${prec}} -test GREATER -then {sum {round ${val} -precision ${prec}} {correction ${prec}}} -else {round ${val} -precision ${prec}}}
NAME

     rounddown - rounddown rounds a number off, but does NOT round up 
                 the last digit even if it is 5 or more.


SYNOPSIS
     
     rounddown -val [VALUE] -prec [PRECISION]

          (valid precision values range from 6 to -6)

     
DESCRIPTION
     
     The rounddown command will round a given value you specify without 
     rounding up the digit associated with precision.  It relies on the 
     "correction" command and is therefore limited in its precision to 
     numbers corresponding to the millions down to the millionth place.

EXAMPLES
     
     Example: rounddown -val 1222522.2262556 -prec 2
     Result:  1222522.22

     Example: rounddown -val 1222522.2262556 -prec -6
     Result:  1000000


AUTHOR

     Paul M. Boren
     pmboren AT gmail DOT com

    
502 uses - Created 2010-05-21 15:23:23 - Last used 2011-06-03 15:38:53
Is this command broken? Tell Jon if you know how to fix it.
Do you find this command offensive? Let Jon know.