Skip to content

Instantly share code, notes, and snippets.

@markrickert
Created May 23, 2014 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markrickert/5803fe0da74edb1cf56d to your computer and use it in GitHub Desktop.
Save markrickert/5803fe0da74edb1cf56d to your computer and use it in GitHub Desktop.
RubyMotion BigDecimal conversion methods.
class BigDecimal
def to_s
self.stringValue
end
def to_f
self.floatValue
end
def to_i
self.intValue
end
def to_ll
self.longLongValue
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment