I have a project which relies on a php form multiplying 2 large numbers but Im having a problem with the output:
now the output i get is $numbertotal=1.21932 E 24 and NO.Originally posted by my_code
<? $number1=123456789012;
$number2 = 9876543214327;
$numbertotal=$number1*$number2;
$shouldbe=1219326311779068734574924;
print($numbertotal . "
" . $shouldbe);
if ($numbertotal==$shouldbe) {
print("
YES");
} else {
print("
NO");
};
?>
anyone know how i get rid of the exponential description and get it expressed as a simple integer?
Bookmarks