Skip to content

Instantly share code, notes, and snippets.

@odrobnik
Created June 24, 2015 09:22
Show Gist options
  • Save odrobnik/af33e5f7b9225f4c9398 to your computer and use it in GitHub Desktop.
Save odrobnik/af33e5f7b9225f4c9398 to your computer and use it in GitHub Desktop.
Bug in iOS 7, apparently fixed in iOS 8
on 64bit iOS devices:
NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithMantissa:10665181101155388760u exponent:0 isNegative:NO];
(lldb) po number
10665181101155388760
(lldb) po number.unsignedLongLongValue
10665181101155387392
(lldb) po number.unsignedIntegerValue
10665181101155387392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment