Roman Kerimov
Roman Kerimov
Since Swift supports Unicode in identifiers, it is possible to improve the appearance of the code by adding aliases for operators, such as: × ⋅ ÷ ∶ (RATIO) - (MINUS...
`print(Foundation.cbrt(1000.0)) // 10.0` `print(Double.pow(1000.0, 1.0/3.0)) // 9.999999999999998` Calculation through "pow" gives a different result.
I restored the Cyrillic letter Ё in Russian annotations in places where the letter Е was used instead.
This can be fixed so: ``` extension Double { func isDivisible(by value: Double) -> Bool { let decimalNumberFormatter = NumberFormatter.init() decimalNumberFormatter.numberStyle = .decimal return decimalNumberFormatter.string(from: .init(value: self/value))?.contains(decimalNumberFormatter.decimalSeparator) == false }...