This function is converting any numeric value with more than 5 decimals into scientific notation
Đang mở
- Ngôn ngữ chính
- Go
- Star
- 805
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
https://github.com/cockroachdb/apd/blob/9c2ab8efc9ac66bf4bb79ab6bed4dcd0c709d1b9/decimal.go#L792
Ex: if input is 0.000001 or if a number has. more than 6 decimals. after decimal point, its being converted to scientific notation.
Ex : 0.000001 is converted to 1E-6
The fix will be instead of using "d.String()", it should be d.Text('f')
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.