Skip to content

Instantly share code, notes, and snippets.

@liamka
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liamka/ad1d402925e977fdf7bd to your computer and use it in GitHub Desktop.
Save liamka/ad1d402925e977fdf7bd to your computer and use it in GitHub Desktop.
Devide large numbers
<?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);
@liamka
Copy link
Author

liamka commented Nov 5, 2014

lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment