swiftlang / swift-foundation

The Foundation project
Apache License 2.0
2.36k stars 150 forks source link

Implement negative power support to pow(_ x: Decimal, _ y: Int). #895

Closed iCharlesHu closed 2 weeks ago

iCharlesHu commented 2 weeks ago

Historically Decimal has never supported negative power and will reproduce unexpected results

resolves: rdar://133875543

iCharlesHu commented 2 weeks ago

@swift-ci please test