|
func (d *Decimal) MarshalText() ([]byte, error) { |
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')
apd/decimal.go
Line 792 in 9c2ab8e
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')