Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add ranges for floats and doubles #20

Closed
aaron868 opened this issue Jul 1, 2017 · 2 comments
Closed

Add ranges for floats and doubles #20

aaron868 opened this issue Jul 1, 2017 · 2 comments

Comments

@aaron868
Copy link

aaron868 commented Jul 1, 2017

Could you add range constraints on double and float generators similar to those of integers? For example, from().upTo().

Thank you.

@hcoles
Copy link
Contributor

hcoles commented Nov 2, 2017

Hi @aaron868 - sorry for the slow response on this.

The 0.23 release added upToAndIncluding ranges for doubles. upTo ranges are a little problematic as it is not instantly clear what the maximum value they should produce is.

upToAndIncluding will be added for floats in the next release.

@hcoles
Copy link
Contributor

hcoles commented Nov 20, 2017

This has now been released in 0.24.

@hcoles hcoles closed this as completed Nov 20, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants