PHP.nl

variant_round

variant_round

Rounds a variant to the specified number of decimal places

 **variant_round** mixed $value int $decimals

Returns the value of rounded to decimal places. value``decimals

valueThe variant.

decimalsNumber of decimal places.

Returns the rounded value, or null on failure.

round