Skip to content

Instantly share code, notes, and snippets.

@andrewbonnington
Last active September 26, 2015 10:31
Show Gist options
  • Select an option

  • Save andrewbonnington/20772e8181ef76f4da9a to your computer and use it in GitHub Desktop.

Select an option

Save andrewbonnington/20772e8181ef76f4da9a to your computer and use it in GitHub Desktop.
AppleScript Floor function
on floor(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 floor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment