php intercepts floating decimal rounding not

There are also many online tutorials is taken through sprintf () and subst () function with the use of two, I am using here is the php function bc

bcadd(123.1234, 0, 3);
// echo 123.123

Guess you like

Origin blog.51cto.com/11016194/2466578