I have to display a computed number and sometimes it is very small and it is displayed like this:
1.0E-8.
How can I display it like
0.00000001
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://php.net/manual/en/function.number-format.php
You could also read how many decimals are in the number beforehand… examples are on that link