Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active December 24, 2023 15:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mcsee/0f0f44841986926a762be86eef72ca4b to your computer and use it in GitHub Desktop.
<?
$distance = 12.4; // miles
$supplyRatio = 10 ; // tons each kilometer
$neededSupply = $distance / $supplyRatio;
// since units could not be mixed the should raise an error
// but the units were all floats so the engine keep working and exploded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment