Skip to content

Instantly share code, notes, and snippets.

@arnaudbos
Created October 17, 2011 15:45
Show Gist options
  • Save arnaudbos/1292904 to your computer and use it in GitHub Desktop.
Save arnaudbos/1292904 to your computer and use it in GitHub Desktop.
Multiply a NSNumber
NSDecimalNumber * n1 = [NSDecimalNumber decimalNumberWithString:[weather.vitesseMaxMS stringValue]];
NSDecimalNumber * n2 = [NSDecimalNumber decimalNumberWithString:@"3.6"];
NSDecimalNumber * res = [n1 decimalNumberByMultiplyingBy:n2];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment