We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6d8cc commit c1ba465Copy full SHA for c1ba465
Sources/App/Commands/Alerting.swift
@@ -306,7 +306,7 @@ private extension TimeAmount {
306
307
private extension TimeInterval {
308
func rounded(decimalPlaces: Int) -> Self {
309
- let scale = (pow(10, decimalPlaces) as NSDecimalNumber).doubleValue
+ let scale = Double.pow(10, decimalPlaces)
310
return (self * scale).rounded(.toNearestOrAwayFromZero) / scale
311
}
312
0 commit comments