Created
November 10, 2021 23:43
-
-
Save cp6/28e72f8165f422fa835eb9b90b442cc8 to your computer and use it in GitHub Desktop.
PHP pounds to kilograms conversion function
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
<?php | |
function poundsToKg(int $pounds): int | |
{ | |
return number_format(($pounds * 0.45359237), 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment