Skip to content

[BUG][GO service]Return to 500 if number is single digit on GET /formatting/number/localizedNumber API. #2956

Description

@lyiyu66

Describe the bug
commit:3c64756c205b147b882f64f01f171e4a90ed8ae0
Return to 500 if number is single digit on GET /formatting/number/localizedNumber API.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'GET /formatting/number/localizedNumber' API.
  2. Input "en" and "-5.01" as locale and number parameters' values.
  3. See error
    image

Expected behavior
Return to 200 and display correct value:

{
  "response": {
    "code": 200,
    "message": "OK",
    "serverTime": ""
  },
  "signature": "",
  "data": {
    "number": "-5.01",
    "formattedNumber": "-5",
    "scale": "0",
    "locale": "en"
  }
}

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions