哪种数字数据类型具有最大精度?

Which numeric data type has the maximum precision?

如何处理 20999998.00000000001 这样的数字? Float80 太小了。

更新

为什么 "print" 的工作方式不同?

print(Decimal(string: "20999998.00000000001"))// Optional(20999998.00000000001)

let a: Decimal = 20999998.00000000001
print(a)//20999998

对于不大于 20,999,999.9769 且精度为 0.00000000001 的数字,我应该使用什么类型的数据?

NSDecimalNumber 是处理数字时最准确的数字。查看有关 Apple 指南的详细信息 https://developer.apple.com/documentation/foundation/nsdecimalnumber