Returns the nearest multiplo for value.

Syntax

$dummy = CFO_RoundUpNearest(value, multiplo);

Examples

$dummy = CFO_RoundUpNearest(24, 25);
// Returns 25

$dummy = CFO_RoundUpNearest(26, 25);
// Return 50

$dummy = CFO_RoundUpNearest({42}, 0.05);
// Typically used rounding to currency
// Note that this rounding only works fine in base
// currency because when selecting other currency there
// is other conversion after your formula

Take a look at this example using the function: Rounding your calculations