\mark\coreMath

对PHP Math方法进行完善 完善原方法中只能对小数点之后进行取舍的操作

Summary

Methods
Properties
Constants
ceil()
floor()
round()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

ceil()

ceil(  $value, integer  $precision) : float|integer

进一法取整

Parameters

$value
integer $precision

Returns

float|integer

floor()

floor(  $value, integer  $precision) : float|integer

舍去法取整

Parameters

$value
integer $precision

Returns

float|integer

round()

round(  $value, integer  $precision) : float|integer

对浮点数进行四舍五入

Parameters

$value
integer $precision

Returns

float|integer

__construct()

__construct()