Decimal
public extension Decimal
-
The stringValue(withDecimalPoint:) method takes an integer parameter decimalPoint, which represents the number of decimal points to be included in the output string. The method returns an optional String value, which is nil if the Decimal value cannot be converted to a string.
Parameter decimalPoint: An integer representing the number of decimal points required in the output string. Returns: An optional String value that represents the Decimal value as a string with the specified number of decimal points. If the Decimal value cannot be converted to a string, the method returns nil.
Declaration
Swift
func stringValue(withDecimalPoint decimalPoint: Int) -> String?