Skip to content

Conversation

@vinnydiehl
Copy link

This was previously causing a crash if you tried to call e.g. Numeric.rand(1...1.1).

This PR supports Float ranges and guarantees exclusivity. If the range is so small that there is no representable float in between the min and max, it will return nil.

This was previously causing a crash if you tried to call e.g.
`Numeric.rand(1...1.1)`.

This commit supports `Float` ranges and guarantees exclusivity. If the
range is so small that there is no representable float in between the
min and max, it will return `nil`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant