Documentation

RoundDown

Table of Contents

funcRoundDown() ROUNDDOWN. float|string

Methods

funcRoundDown()

ROUNDDOWN.

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

Rounds a number down 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