FloatingPoint
protocol FloatingPoint : Comparable, AbsoluteValuable, SignedNumber, Strideable
-
Returns the value rounded to an integral value using the specified rounding rule.
Mutating variant
round
Declaration
Swift
public func rounded(_ rule: FloatingPointRoundingRule) -> SelfParameters
ruleThe rounding rule follow.
View on GitHub
FloatingPoint Extension Reference