I'm trying to do an echo of a variable containing 1400000.
so there is written: echo round(1400000);
this gives 1,4E+6 instead of the full number.
Anybody an idea on how to display it fully?
Php – round in PHP shows scientific notation instead of full number
floating-pointintegerphprounding
Related Question
- Javascript – How to round down a number in Javascript
- Javascript – How to deal with floating point number precision in JavaScript
- Python – How to round UP a number
- Javascript – How to print a number with commas as thousands separators in JavaScript
- Php – Reference — What does this symbol mean in PHP
- Php – “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- Php – Get the full URL in PHP
- Python – Round a floating-point number down to the nearest integer
Best Solution
It seems that round was the problem. I changed it with
number_format()
and this does the job just fine. Thanks Aron and Paul for the answers.