Last active
December 24, 2023 15:28
-
-
Save mcsee/0f0f44841986926a762be86eef72ca4b to your computer and use it in GitHub Desktop.
This file contains 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
<? | |
$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