iOS 15 NumberFormatter number 转 string 丢失精度问题
Open
- Dominant language
- Swift
- Stars
- 4.3k
- Forks
- 677
- PR merge metrics
- No merged PRs in 30d
Description
IOS 14 上没问题,iOS 15 上, Source/BuiltInBasicType.swift 第 120 行,maximumFractionDigits 设置的 16,导致 number 转 string , 6979050226255138061 会转换成 "6979050226255130000"。可以将 maximumFractionDigits 改小点,比如 10。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at Source/BuiltInBasicType.swift line 120 and reproduce the NumberFormatter conversion on iOS 15 using 6979050226255138061. Compare the result with iOS 14 and verify that the completed change preserves the expected numeric string without losing precision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100