Write a PHP script to convert scientific notation to an int and a float.
Sample scientific notation : 4.5e3
<?php $val = '4.5e3'; $ival = (int) $val; $fval = (float) $val; echo $ival."\n"; echo $fval."\n"; ?>
Sample Output:
4 4500
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer