Skip to content

Wdfn 614 decimals in gw table truncated

Before making a pull request

  • Run all linters (make lint)
  • Run all tests (make test)
  • Update the changelog appropriately

Description -WDFN 614 Decimals in GW Table Truncated

This was caused by a type conversion from String (as received from the services) to Float. When doing this conversion JavaScript drops trailing zeros as it as no way determining the significant digits of the number. Allowing JavaScript to compare the data as strings prevents the loss of the digits.

This issue was also present on the Instantaneous Values table, and that is fixed as well.

Now the number of trailing digits should reflect the data as it was when received from the services.

After making a pull request

  • If appropriate, put the link to the PR in the JIRA ticket
  • Assign someone to review unless the change is trivial

Merge request reports