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
StepRange
When dealing with floating-point numbers, StepRangeLen should be used instead of StepRange. However, this is currently allowed:
StepRangeLen
julia> StepRange(1.0u"m", 1.0u"m", 3.0u"m") (1.0:1.0:3.0) m
I would argue that it should error, like it does for unitless numbers:
julia> StepRange(1.0, 1.0, 3.0) ERROR: ArgumentError: StepRange should not be used with floating point [...]
The text was updated successfully, but these errors were encountered:
StepRange{<:Quantity{<:AbstractFloat}}
Successfully merging a pull request may close this issue.
When dealing with floating-point numbers,
StepRangeLen
should be used instead ofStepRange
. However, this is currently allowed:I would argue that it should error, like it does for unitless numbers:
The text was updated successfully, but these errors were encountered: