CORE POS - Fannie
The CORE POS back end
|
Public Member Functions | |
round ($price, $extra_parameters=array()) | |
API class to define rounding rules used when setting prices
COREPOS\Fannie\API\item\PriceRounder::round | ( | $price, | |
$extra_parameters = array() |
|||
) |
The round function takes a numeric price and returns it with the correct rounding rules applied
$price | [decimal] number to be rounded |
$extra_parameters | [array] optional extra arguments if pricing rules are extremely complex |
This function will always round UP so the return price ends in a 5 or a 9. Values ending in 05 and 09 are excluded so a price $x.00 through $x.14 will round up to $x.15.