-
Notifications
You must be signed in to change notification settings - Fork 112
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
Overflow when doing upreferred(1u"ϵ0") #79
Comments
Trying to work out where the overflow comes from julia> Unitful.basefactor(unit(Unitful.μ0 * 1Unitful.c^2))
(1.0,-2358202494865994080) So, already in basefactor |
I've fixed this with a recent commit—I was being inconsistent in my strategy for overflow detection. I'll tag a new version soon. As I've implemented it now, there's still no option to do exact conversions in Unitful when the numbers grow bigger than Int64. I consider that more of a feature enhancement than a bug fix though (see also #81). The |
Trying to find where the overflow starts, I find:
Which is probably incorrect.
I'm finding a fair number of these overflow errors happening when trying to work in atomic units.
I did find that comment in the convfact about doing an overflow check :)
The text was updated successfully, but these errors were encountered: