我在用round函数时碰到一个问题,我不知道是设置问题还是我对函数理解有问题.
例如, 当我用 round(23.123456789, 4)时, 结果会给出 23.1234999993232 这样得玩意,无法精确到小数点后四位,总是一长串. 而用round(23.123456789)就会给出23,没有问题.
请问我如果想得到一个小数点后精确位数的值,在php中如何实现呢.
谢谢指教.
我在用round函数时碰到一个问题,我不知道是设置问题还是我对函数理解有问题.
例如, 当我用 round(23.123456789, 4)时, 结果会给出 23.1234999993232 这样得玩意,无法精确到小数点后四位,总是一长串. 而用round(23.123456789)就会给出23,没有问题.
请问我如果想得到一个小数点后精确位数的值,在php中如何实现呢.
谢谢指教.
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy