let formatter = NumberFormatter()
formatter.numberStyle = .decimal
formatter.minimumFractionDigits = 18
formatter.maximumFractionDigits = 18
formatter.roundingMode = .floor
let number = NSDecimalNumber(string: "6.381569271192148411")
let result = formatter.string(from: number)
print(result!)
iOS 15: 6.381569271192150000
iOS 14: 6.381569271192148411