Last active
August 29, 2015 14:08
-
-
Save liamka/ad1d402925e977fdf7bd to your computer and use it in GitHub Desktop.
Devide large numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
mysql_connect('localhost','root','') or die("Database error"); | |
$num1 = "100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"; | |
$num2 = "99"; | |
$r = mysql_query("Select @sum:=$num1 / $num2"); | |
$sumR = mysql_fetch_row($r); | |
$sum = $sumR[0]; | |
var_dump($sum); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lol