Created
December 8, 2017 16:03
-
-
Save somoza/0ae5cb205ae45b83979408ad56d572a5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| function rounddowntohundred($theNumber) { | |
| if (strlen($theNumber)<3) { | |
| $theNumber=$theNumber; | |
| } else { | |
| $theNumber=substr($theNumber, 0, strlen($theNumber)-2) . "00"; | |
| } | |
| return $theNumber; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment