4 ms·
You can do this now @(100.5) for NSNumber literals.
by bennyg 13y ago
You can do this now @(100.5) for NSNumber literals.
- dennis_vartan 13y agoAnd even shorter, just @100.5 if what you have is a literal. The parentheses are needed if you're boxing a value, e.g.: @(price + 100.5) In detail: http://clang.llvm.org/docs/ObjectiveCLiterals.html http://clang.llvm.org/docs/ObjectiveCLiterals.html