Documentation

RoundUp

Table of Contents

funcRoundUp() ROUNDUP. float|string

Methods

funcRoundUp()

ROUNDUP.

public static funcRoundUp( $number : float , $digits : int ) : float|string

Rounds a number up to a specified number of decimal places

Parameters
$number : float

Number to round

$digits : int

Number of digits to which you want to round $number

Return values
float|string —

Rounded Number, or a string containing an error

Search results