NSNumberFormatter Class Reference
PDF
Overview
Tasks
Configuring Formatter Behavior and Style
Converting Between Numbers and Strings
Managing Localization of Numbers
Configuring Rounding Behavior
Configuring Numeric Formats
Configuring Numeric Symbols
Configuring the Format of Currency
Configuring Numeric Prefixes and Suffixes
Configuring the Display of Numeric Values
Configuring Separators and Grouping Size
Managing the Padding of Numbers
Managing Input Attributes
Configuring Significant Digits
Managing Leniency Behavior
Managing the Validation of Partial Numeric Strings
Class Methods
defaultFormatterBehavior
setDefaultFormatterBehavior:
Instance Methods
allowsFloats
alwaysShowsDecimalSeparator
attributedStringForNil
attributedStringForNotANumber
attributedStringForZero
currencyCode
currencyDecimalSeparator
currencyGroupingSeparator
currencySymbol
decimalSeparator
exponentSymbol
format
formatterBehavior
formatWidth
generatesDecimalNumbers
getObjectValue:forString:range:error:
groupingSeparator
groupingSize
hasThousandSeparators
internationalCurrencySymbol
isLenient
isPartialStringValidationEnabled
locale
localizesFormat
maximum
maximumFractionDigits
maximumIntegerDigits
maximumSignificantDigits
minimum
minimumFractionDigits
minimumIntegerDigits
minimumSignificantDigits
minusSign
multiplier
negativeFormat
negativeInfinitySymbol
negativePrefix
negativeSuffix
nilSymbol
notANumberSymbol
numberFromString:
numberStyle
paddingCharacter
paddingPosition
percentSymbol
perMillSymbol
plusSign
positiveFormat
positiveInfinitySymbol
positivePrefix
positiveSuffix
roundingBehavior
roundingIncrement
roundingMode
secondaryGroupingSize
setAllowsFloats:
setAlwaysShowsDecimalSeparator:
setAttributedStringForNil:
setAttributedStringForNotANumber:
setAttributedStringForZero:
setCurrencyCode:
setCurrencyDecimalSeparator:
setCurrencyGroupingSeparator:
setCurrencySymbol:
setDecimalSeparator:
setExponentSymbol:
setFormat:
setFormatterBehavior:
setFormatWidth:
setGeneratesDecimalNumbers:
setGroupingSeparator:
setGroupingSize:
setHasThousandSeparators:
setInternationalCurrencySymbol:
setLenient:
setLocale:
setLocalizesFormat:
setMaximum:
setMaximumFractionDigits:
setMaximumIntegerDigits:
setMaximumSignificantDigits:
setMinimum:
setMinimumFractionDigits:
setMinimumIntegerDigits:
setMinimumSignificantDigits:
setMinusSign:
setMultiplier:
setNegativeFormat:
setNegativeInfinitySymbol:
setNegativePrefix:
setNegativeSuffix:
setNilSymbol:
setNotANumberSymbol:
setNumberStyle:
setPaddingCharacter:
setPaddingPosition:
setPartialStringValidationEnabled:
setPercentSymbol:
setPerMillSymbol:
setPlusSign:
setPositiveFormat:
setPositiveInfinitySymbol:
setPositivePrefix:
setPositiveSuffix:
setRoundingBehavior:
setRoundingIncrement:
setRoundingMode:
setSecondaryGroupingSize:
setTextAttributesForNegativeInfinity:
setTextAttributesForNegativeValues:
setTextAttributesForNil:
setTextAttributesForNotANumber:
setTextAttributesForPositiveInfinity:
setTextAttributesForPositiveValues:
setTextAttributesForZero:
setThousandSeparator:
setUsesGroupingSeparator:
setUsesSignificantDigits:
setZeroSymbol:
stringFromNumber:
textAttributesForNegativeInfinity
textAttributesForNegativeValues
textAttributesForNil
textAttributesForNotANumber
textAttributesForPositiveInfinity
textAttributesForPositiveValues
textAttributesForZero
thousandSeparator
usesGroupingSeparator
usesSignificantDigits
zeroSymbol
Constants
NSNumberFormatterStyle
NSNumberFormatterBehavior
NSNumberFormatterPadPosition
NSNumberFormatterRoundingMode
Revision History
Index
Companion Guide
Data Formatting Programming Guide for Cocoa