Skip to content

This function is converting any numeric value with more than 5 decimals into scientific notation #151

Description

@vemulashankar753

apd/decimal.go

Line 792 in 9c2ab8e

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')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions