We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Should I be able to do this?
using Statistics julia> middle(33°F, 35°F) ERROR: AffineError: an invalid operation was attempted with affine units: °F
The text was updated successfully, but these errors were encountered:
Yeah, several similar methods are probably necessary #200
Sorry, something went wrong.
I was thinking the solution was to just redefine Statistics.middle(x,y) = (x-y)/2 + y but
Statistics.middle(x,y) = (x-y)/2 + y
julia> (33°F - 32°F)/2 + 32°F 273.4277777777778 K
produces a result in Kelvin instead of Fahrenheit, which I didn't expect.
We're not super happy with how quickly temperature manipulation becomes all-Kelvin, either. But you can convert it back to Celsius, of course.
Related JuliaStats/Statistics.jl#47
No branches or pull requests
Should I be able to do this?
The text was updated successfully, but these errors were encountered: