doubles can be specified in scientific notation : Scientific Notation : Math PHP Source Code


PHP Source Code » Math » Scientific Notation »

 

doubles can be specified in scientific notation



<?
$small_positive = 5.5e-3;
print("small_positive is $small_positive<BR>");
$large_positive = 2.8e+16;
print("large_positive is $large_positive<BR>");
$small_negative = -2222e-10;
print("small_negative is $small_negative<BR>");
$large_negative = -0.00189e6;
print("large_negative is $large_negative<BR>");
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Math
» Scientific Notation