Skip to content

Conversation

@jbee
Copy link
Collaborator

@jbee jbee commented Oct 17, 2023

The issue was twofold:

  1. JS did not evaluate value is Int to false for a double value so it went the integer path and did -value.toInt()
  2. the negate function always had returned a double no matter the input which was important in some calculations to keep doing math for bigger numbers

@jbee jbee self-assigned this Oct 17, 2023
@jbee jbee merged commit e2091ba into dhis2:main Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant