Last active
October 12, 2024 22:55
-
-
Save andrewbonnington/c3cc79e4a0af5368c50f to your computer and use it in GitHub Desktop.
AppleScript Ceil function
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
on ceil(x) | |
set y to x div 1 | |
if x > 0 and x mod 1 is not 0 then | |
set y to y + 1 | |
end if | |
return y | |
end ceil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment