-
Notifications
You must be signed in to change notification settings - Fork 33
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
ISSUE-231 switch from xsd:double to xsd:decimal (revealed with ABETCO) #269
ISSUE-231 switch from xsd:double to xsd:decimal (revealed with ABETCO) #269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general I prefer xsd:decimal
for serialization, and almost always specify xsd:decimal
in my designs. It is more 'honest', and has arbitrary precision.
It does get a bit unwieldy for very large and very small numbers (large positive and negative exponents in scientific notation), but that is really just in a Human-oriented UI.
However, as you note, it is potentially incompatible with some existing applications, so feedback on this should be sought before proceeding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in stateEnergyFlux.ttl
there were errors in the form of NE-n were converted to NEn.
Example:
"9.0E-4"^^xsd:double
was converted to "90000.0"^^xsd:decimal
instead of "0.0009"^^xsd:decimal
. Added comments for each as appropriate.
negative values in scientific notation were converted to positive values when going from xsd:double to xsd:decimal
Indeed. I interpret this a 'more' correct. I advocate making the change and highlighting the change it in the v3.6 release info. I think I corrected the negative to positive exponent issues. Can someone please verify? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong during the automated replacement in src/stateEnergyFlux.ttl
. Looks good now.
src/relaMath.ttl
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
@jmkeil Can you please fix the conflicts in src/reprSciUnits.ttl. I was concerned about changing the abbreviation for Siemens from S to G, in particular... |
Approved |
closed on accident. |
5925c47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIxed symbol/abbreviation mismatch
The wrong symbols did not origin from my PR, but from this PRs parent version (69655a7). The symbols have been fixed in my PR #271, which was merged after this PRs parent commit. Preserving the correct symbols is a matter of propper merging. |
Solving #231 by replacing xsd:double with xsd:decimal for conversion values and beyond.
Please not, that this is a breaking change, as it might change datatypes used in tools to represent parsed values.