You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marco Quinten edited this page Feb 28, 2021
·
2 revisions
/// Returns a string representing the receiver.
///
/// - Remark: String() does not support optional chaining.
vartoString:String
/// Returns a string representing the receiver, respecting the current locale.
///
/// - Parameters:
/// - decimals: The maximum number of decimals to display. Standard rounding is applied. The default is `2`.
/// - separatesThousands: Whether thousands should be separated according to the current locale.
/// - locale: The locale to be used for formatting.
func toFormattedString(
decimals:Int=2,
separatesThousands:Bool=true,
locale:Locale=.autoupdatingCurrent
)->String