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






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>");
?>

           
       








Related examples in the same category