Forcing output in standard mathematical notation in PHP [duplicate]
When i do follow following operation echo 456/100000000
i get my output in scientific notation
4.56E-6
I开发者_如何学JAVAs it possible to force the output in standard notation, i.e as 0.00000456
Have a look at this function: http://php.net/manual/en/function.number-format.php
$std =
sprintf( "%.8f", 456/100000000 );
echo sprintf("%01.8f",456/100000000);
精彩评论