Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dfround()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfRound()
Rounds a given number
------------------------------------------------------------------------------
Syntax:

     dfRound( <nNumber>, <nRound> ) --> nRounded

Parameters:

     <nNumber>  Input number
     <nRound>   Number to use for rounding

Returns:

     <nRounded> Rounded number

Description:

     Rounds a number to a given value

Example:

     ? dfRound( 11, 5 )  //  10
     ? dfRound( 12, 5 )  //  10
     ? dfRound( 13, 5 )  //  15
     ? dfRound( 14, 5 )  //  15
     ? dfRound( 15, 5 )  //  15
     ? dfRound( 16, 5 )  //  15
     ? dfRound( 17, 5 )  //  15
     ? dfRound( 18, 5 )  //  20
     ? dfRound( 19, 5 )  //  20
     ? dfRound( 20, 5 )  //  20

See also:

     dfXor()

See Also: dfXor()

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