Skip to content

Instantly share code, notes, and snippets.

@andrewbonnington
Last active October 12, 2024 22:55
Show Gist options
  • Save andrewbonnington/c3cc79e4a0af5368c50f to your computer and use it in GitHub Desktop.
Save andrewbonnington/c3cc79e4a0af5368c50f to your computer and use it in GitHub Desktop.
AppleScript Ceil function
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