Skip to content
New issue

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

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

Already on GitHub? # to your account

Int64 Overflow on Simple Conversion #660

Closed
ejmeitz opened this issue Jul 4, 2023 · 1 comment · Fixed by #741
Closed

Int64 Overflow on Simple Conversion #660

ejmeitz opened this issue Jul 4, 2023 · 1 comment · Fixed by #741

Comments

@ejmeitz
Copy link
Contributor

ejmeitz commented Jul 4, 2023

I am trying to do the following unit conversion:
uconvert(u"Å * ps^-2", 1.0u"kcal*Å^-1*g^-1")
but get this error:
ERROR: OverflowError: 10000000000000 * 10000000000 overflowed for type Int64

How can I avoid this? The actual conversion is literally just dividing by 418.4. Is there some way to manually define what this conversion should be?

Similar to #430 #510

Socob added a commit to Socob/Unitful.jl that referenced this issue Oct 7, 2024
@Socob
Copy link
Contributor

Socob commented Oct 7, 2024

This was fixed in #648 (present in v1.16.1, but not anymore since v1.16.2).

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants