Skip to content

Instantly share code, notes, and snippets.

@jtoll
Created November 8, 2012 20:59
Show Gist options
  • Save jtoll/4041561 to your computer and use it in GitHub Desktop.
Save jtoll/4041561 to your computer and use it in GitHub Desktop.
Machine epsilon
# "Machine epsilon gives an upper bound on the relative
# error due to rounding in floating point arithmetic."
# http://en.wikipedia.org/wiki/Machine_epsilon
# ?.Machine
.Machine$double.eps
# [1] 2.220446e-16
# 2 ^ (-52)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment