test-check 2018-04-20

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

Expressed in base 10 or base 2?

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

(like is 1e-100 high precision?)

yes, relative to the fixed decimal point

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

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