5 Commits

Author SHA1 Message Date
Charles Hu
660f795ad8
Implement negative power support to pow(_ x: Decimal, _ y: Int). Historically Decimal has never supported negative power and will reproduce unexpected results (#895)
resolves: rdar://133875543
2024-09-05 16:15:14 -07:00
Charles Hu
e34e1c9a78
Decimal bin compat: remove the usage of @_cdecl from 'public' methods defined in NSDecimal.h (#880) 2024-08-21 08:40:03 -07:00
Charles Hu
aec5170b20
Bin compat: NSDecimalString should accept dictionary in addition to locale (#769)
NSDecimalString historically accepted Any as the second parameter, which could be either a Locale or a Dictionary. We should keep that behavior.
2024-07-25 13:08:32 -07:00
kperryua
944aeadfb4
rdar://131793235 (Invalid JSON string causes precondition failure) (#754) 2024-07-22 11:23:02 -07:00
Tony Parker
d59046871c
Add SPI imports for SwiftCorelibsFoundation usage of Decimal (#751)
* Add SPI imports for SwiftCorelibsFoundation usage of Decimal

Also adds some tests for the exported functionality that SCL-F uses.

* Rename and rearrange some internal vs SPI methods

* Remove obsolete comment
2024-07-19 14:23:35 -07:00