asDecimalString(precision:exponential:)
self
as a Decimal String with a specified precision, possibly using exponential notation
func asDecimalString(precision: Int, exponential: Bool = false) -> String
Parameters
- precision
The number of significant digits
- exponential
true
to use exponential notation,false
to use plain notation, default isfalse
Returns
self
as a decimal String