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

Conversion error from MilliSV__PER__HR to MicroSV__PER__HR #109

Open
matthias-mueller opened this issue Feb 7, 2025 · 1 comment
Open

Comments

@matthias-mueller
Copy link

matthias-mueller commented Feb 7, 2025

Quick junit test:

assertEquals(new BigDecimal(15120), Qudt.convert(new BigDecimal("15.12"), Units.MilliSV__PER__HR, Units.MicroSV__PER__HR));

Output:

java.lang.AssertionError: 
Expected :15120
Actual   :15119.98790400967679225856619314705

Despite the small difference between expected and calculated value there shouldn't be any jitter at all?

Tested with qudtlib 6.8.1

@fkleedorfer
Copy link
Contributor

Will look into that, thanks!

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

No branches or pull requests

2 participants