Aparajita Fishman
1f280b3985
New: CPNumberFormatter -localizedStringFromNumber:numberStyle:
...
Added unit test as well.
2013-05-06 17:45:16 -04:00
Alexander Ljungberg
767a7a7177
Test: expand CPNumberFormatter test to be more complete.
...
- Cover the formatting of @"" to nil.
- Check error messages by reference.
- Check output values.
- use @ref() instead of hand coded AT_REF.
Refs #1829 .
2013-03-10 13:31:56 +00:00
Andrew Hankinson and Aparajita Fishman
5fac631f6f
New: minimum/maximum support for CPNumberFormatter
...
Previously, minimum and maximum were not supported in CPNumberFormatter.
This commit adds support for these in IB and via code. Updated unit tests included.
Fixes #1829
2013-03-08 09:30:31 -05:00
Alexander Ljungberg
1f0ab2ab49
Fixes #1721 . Fixed: bad negative numbers from CPNumberFormatter.
...
Without this fix, CPNumberFormatter didn't format negative values well. E.g. with thousands separators on it could generate, "-,999.00".
This fix generally improves handling of negative numbers by CPNumberFormatter.
2013-01-23 22:23:50 +00:00
Alexander Ljungberg
59ad8499df
Refs #1676 . Whitespace.
2012-09-24 17:05:35 +01:00
Johan Stille
eb2bb24c19
Added support for CPNumberFormatterPercentStyle in CPNumberFormatter.
2012-09-24 12:08:31 +02:00
Alexander Ljungberg
31ea0da526
CPNumberFormatter generatesDecimalNumbers support, enabled by default.
2012-08-04 13:45:45 +01:00
Alexander Ljungberg
3a2bf36359
Very basic CPNumberFormattercurrency style.
2012-08-04 13:37:42 +01:00
Alexander Ljungberg
dc0c63ccc3
Extend CPNumberFormatter CPCoding support and fix rounding default.
2012-08-04 02:31:43 +01:00
Alexander Ljungberg
a7f22a0c5a
Correct CPNumberFormatter maximumFractionalDigits default.
2012-08-04 01:09:51 +01:00
Alexander Ljungberg
b279a92e4c
CPNumberFormatter setMinimumFractionDigits: support.
2012-08-04 00:55:41 +01:00
Alexander Ljungberg
055dd7229e
Properly allow CPNumberFormatter to operate on most CPNumber types.
...
This only worked by accident before.
2012-08-04 00:48:45 +01:00
Alexander Ljungberg
a78c1bf03a
Refs #1624 . Fix grouping separator support.
...
`perMillSymbol` was incorrectly used as the grouping separator.
2012-07-21 13:13:14 +01:00
Alexander Ljungberg
445adcb47f
CPNumberFormatter rounding mode support.
2011-06-10 11:41:23 -07:00
Alexander Ljungberg
4e9b975ca8
Simple CPNumberFormatter stringFromNumber for CPNumberFormatterDecimalStyle.
2011-06-10 11:23:36 -07:00