数学函数库

abs

(PHP3 , PHP4)

abs ---  取绝对值

语法 : mixed abs(mixed number);

说明 : 

传回参数number的绝对值,如果number为浮点数,传回的型态也是浮点数,除此之外其它传回的型态为整数。


上一页 首页 下一页