Decimal
public extension Decimal
-
This function is an extension to the Decimal type in Swift. It converts a Decimal value to a Double value, rounding the result to the specified number of decimal places.
Note
internal onlyDeclaration
Swift
func convertToDouble(withDecimalPoint decimalPoint: Int) -> DoubleParameters
decimalPointspecifies the number of decimal places to which the result should be cut off
Return Value
returns the double value with the specified decimal places
View on GitHub
Decimal Extension Reference