Skip to content

Instantly share code, notes, and snippets.

@aikar
Created August 14, 2010 02:39
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 aikar/523884 to your computer and use it in GitHub Desktop.
Save aikar/523884 to your computer and use it in GitHub Desktop.
<?php
$p1_x = (string) 35.705651433621;
$p0_x = (string) 35.723213079092;
$s1_x = gmp_sub($p1_x, $p0_x);
echo gmp_strval($s1_x);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment