Created
May 23, 2014 21:12
-
-
Save markrickert/5803fe0da74edb1cf56d to your computer and use it in GitHub Desktop.
RubyMotion BigDecimal conversion methods.
This file contains 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
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