test-check

devn 2018-04-20T19:57:00.000585Z

If i want to generate a double with limited precision, how do?

2018-04-20T20:00:46.000130Z

Expressed in base 10 or base 2?

2018-04-20T20:01:46.000618Z

And do you mean precision relative to the fixed decimal point, or in the floating point sense?

2018-04-20T20:02:09.000338Z

(like is 1e-100 high precision?)

devn 2018-04-20T20:02:33.000230Z

yes, relative to the fixed decimal point

devn 2018-04-20T20:02:35.000338Z

base 10

2018-04-20T20:03:01.000475Z

I'd generate an integer and divide it by 100.0 probably

2018-04-20T20:03:14.000029Z

With fmap

devn 2018-04-20T20:03:14.000507Z

thanks @gfredericks

2018-04-20T20:03:20.000519Z

👍

2018-04-20T20:03:52.000103Z

Obligatory warning about how doubles can't precisely represent most of those numbers