Formatted strings in Swift
Formatted strings in Swift
- Subject: Formatted strings in Swift
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 02 Jul 2014 15:12:45 +0700
I want to do in Swift something like:
printf("my var: %i5\n", someInt);
I can do:
println( "my var: " + String(someInt) )
but I want all integers to have exactly 5 places.
How can this be done?
I read both Swift books, but did not see any formatting. Surely this must exist somewhere, but where?
Gerriet.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden