\DtApp\ThinkLibrary\facadeDecimals

小数门面

Summary

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

Methods

intval()

intval(mixed  $num) : integer

直接取整,舍弃小数保留整数

Parameters

mixed $num

Returns

integer

round()

round(mixed  $num, mixed  $bl) : float

四舍五入

Parameters

mixed $num
mixed $bl

Returns

float

ceil()

ceil(mixed  $num) : false|float

有小数,就在整数的基础上加一

Parameters

mixed $num

Returns

false|float

floor()

floor(mixed  $num) : false|float

有小数,就取整数位

Parameters

mixed $num

Returns

false|float

judge()

judge(mixed  $num) : boolean

判断是不是小数

Parameters

mixed $num

Returns

boolean

getFacadeClass()

getFacadeClass() : string

获取当前Facade对应类名(或者已经绑定的容器对象标识)

Returns

string