Created
January 27, 2017 11:23
-
-
Save pawiromitchel/d2b607a10379a7f2c7516c08881b8afb to your computer and use it in GitHub Desktop.
PHP - MS Exel ceiling 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 ceiling($number, $significance = 1) | |
{ | |
return ( is_numeric($number) && is_numeric($significance) ) ? (ceil($number/$significance)*$significance) : false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment