Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lyiyu66 opened this issue Jan 8, 2024 · 0 comments
Assignees

Comments

@lyiyu66
Copy link

lyiyu66 commented Jan 8, 2024

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"
  }
}
@lyiyu66 lyiyu66 changed the title [BUG][GO service]Return to 500 if number is nagative number on GET /formatting/number/localizedNumber API. [BUG][GO service]Return to 500 if number is single digit on GET /formatting/number/localizedNumber API. Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants