You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Unitful
using Unitful: kg, m, s, inch, minute, W, ft, rad
@unit hp "hp" HorsePower (74569987//100000)W false
x =0.2450140015194046ft * inch^2* minute^-1* rad^-1
y =494.70883675108837kg * inch^3* m^2* hp^-1* minute^-1* s^-3
The text was updated successfully, but these errors were encountered:
CameronBieganek
changed the title
Overflow when performing arithmetic with floating point quantities
Integer overflow when performing arithmetic with floating point quantities
Dec 28, 2021
Not sure if this is the same as #430.
At first I thought it might be because I used a rational number in the definition of
hp
, but I still get the same error if I definehp
as follows:If I convert the units before squaring and adding, then I don't get an overflow error:
The text was updated successfully, but these errors were encountered: