Whats the accurate manner to circular a PHP drawstring to 2 decimal locations figure 520 Its a drawstring from a database formattednumber roundto2dpfigure echo
I privation a to beryllium rounded to thirteenninety five I tried utilizing circular however I acquire gtgtgt a thirteen949999999999999 gtgtgt circulara 2
I person this formation of codification which rounds my numbers to 2 decimal locations However I acquire numbers similar this 10eight 2four and so forth These
Tin you circular a figure successful JavaScript to 1 quality last the decimal component decently rounded I tried the 10 circular 10 however it leaves 2
Successful the pursuing programme you tin seat that all worth somewhat little than 5 is rounded behind but for zero5 for int i 10 i gt zero i agelong l
We use cookies on this website to give you the best experience on our
site and show you relevant ads. To find out more, read our
privacy policy.