Documentation

Mround

Table of Contents

funcMround() MROUND. float|string

Methods

funcMround()

MROUND.

public static funcMround( $number : float , $multiple : int ) : float|string

Rounds a number to the nearest multiple of a specified value

Parameters
$number : float

Number to round

$multiple : int

Multiple to which you want to round $number

Return values
float|string —

Rounded Number, or a string containing an error

Search results