Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

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

Support BigFloat/BigInt? #14

Closed
jariji opened this issue Feb 25, 2024 · 1 comment
Closed

Support BigFloat/BigInt? #14

jariji opened this issue Feb 25, 2024 · 1 comment
Labels
feature This is related to a new feature

Comments

@jariji
Copy link
Contributor

jariji commented Feb 25, 2024

After getting annoyed by all the fiddly details when testing with normal floats, I wanted to to try testing a claim using BigFloat. But Data.Floats{BigFloat}() doesn't work.

julia> Data.Floats{BigFloat}()
ERROR: TypeError: in Floats, in T, expected T<:Union{Float16, Float32, Float64}, got Type{BigFloat}
@Seelengrab
Copy link
Owner

Well, those fiddly details are just what make floating point floating point :)

BigFloat (like BigInt) is currently unsupported since managing its state is quite a bit more challenging. There are not a lot of ways to construct a BigFloat/BigInt, and generating one from scratch is itself challenging. Hypothesis has this limitation too, it only supports up to 128-bit wide integers as far as I can tell and 16/32/64-bit floating point numbers.

I'm not opposed in principle to add this at some point, but it's going to require at the very least #3. There isn't really a good way to construct a BigInt/BigFloat from the raw choicesequence, without copying those (potentially huge) numbers around a lot.

@Seelengrab Seelengrab added the feature This is related to a new feature label Feb 25, 2024
@Seelengrab Seelengrab changed the title Support BigFloat? Support BigFloat/BigInt? Feb 27, 2024
Repository owner locked and limited conversation to collaborators Mar 4, 2024
@Seelengrab Seelengrab converted this issue into discussion #20 Mar 4, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
feature This is related to a new feature
Projects
None yet
Development

No branches or pull requests

2 participants