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>dfroundup()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfRoundUp()
it will round up to the next higher number
------------------------------------------------------------------------------
Syntax:

     dfRoundUp(<nNum>,<nRound>) --> [nRounded]

Parameters:

     <nNum>     Number for rounding
     <nRound>   Factor for rounding

Returns:

     <nRounded> rounded Number

Description:

     Permits to round a number to the first higher multiple

Example:

     dfRoundUp(5, 5)   // Returns  5
     dfRoundUp(5, 6)   // Returns 10
     dfRoundUp(5, 9)   // Returns 10
     dfRoundUp(5, 10)  // Returns 10
     dfRoundUp(5, 11)  // Returns 15

See also:

     dfRound()

See Also: dfRound()

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