Created
November 19, 2012 10:55
-
-
Save toamitkumar/4110090 to your computer and use it in GitHub Desktop.
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
NSDecimal newPoint[2]; | |
new_point = Pointer.new(NSDecimal.type, 2) | |
NSDecimalRound(&newPoint[0], &newPoint[0], 0, NSRoundPlain); | |
NSDecimalRound(new_point, new_point, 0, NSRoundPlain) | |
int x = [[NSDecimalNumber decimalNumberWithDecimal:newPoint[0]] intValue]; | |
NSDecimalNumber.decimalNumberWithDecimal(new_point[0]).intValue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment