Top "Nsnumberformatter" questions

A Cocoa class for formatting and parsing numerical values.

Formatting input for currency with NSNumberFormatter in Swift

I am creating a budget app that allows the user to input their budget as well as transactions. I need …

swift nsnumberformatter
How to input currency format on a text field (from right to left) using Swift?

I have a number let’s say 0.00. When the user taps 1. We should have 0.01 When the user taps 2. We should …

ios swift uitextfield swift3 nsnumberformatter
NSNumberFormatter with comma decimal separator

I tried to convert an NSString like "12000.54" into "12.000,54". I wrote an NSNumberFormatter instance. NSNumberFormatter *formatter = [[[NSNumberFormatter alloc] init] autorelease]; [formatter …

ios objective-c decimal separator nsnumberformatter
how to move cursor in UITextField after setting its value

can anybody help me with this: i need to implement UITextField for input number. This number should always be in …

ios uitextfield nsnumberformatter selectedtext
Formatting a number to show commas and/or dollar sign

I want to format my UILabel with commas or better with a dollar sign and commas (with no decimal). Here …

objective-c formatting uilabel nsnumberformatter
NSNumberFormatter and 'th' 'st' 'nd' 'rd' (ordinal) number endings

Is there a way to use NSNumberFormatter to get the 'th' 'st' 'nd' 'rd' number endings? EDIT: Looks like it …

ios objective-c nsnumberformatter
Limit a double to two decimal places without trailing zeros

I read this and that. I want this exactly: 1.4324 => "1.43" 9.4000 => "9.4" 43.000 => "43" 9.4 => "9.40" (wrong) 43.000 => "43.00" (wrong) In both questions the …

iphone objective-c cocoa-touch decimal nsnumberformatter
Swift 3 and NumberFormatter (.currency) == ¤?

Xcode 8.0 (8A218a) GM Target: iOS 10 (Swift 3) Consider the following code: let number = NSDecimalNumber(decimal: 22.4) let numberFormatter = NumberFormatter() numberFormatter.numberStyle = .…

ios locale swift3 ios10 nsnumberformatter
Formatting Numbers in Swift 3

I want to format number to this: 123.234.234.234 from 123234234234 depends on what the user types into the text field. I don't …

swift numbers nsnumberformatter
In Swift, how to insert formatted Int value into String?

This seems like a super basic question, but I just can't seem to find the answer anywhere :-( I am …

ios string swift nsnumberformatter stringwithformat