From: "Florian Groß" Date: 2005-06-25T16:10:55+09:00 Subject: Re: [ANN] FixedPt-0.0.1 Phil Tomson wrote: > What's a fixed point number? > ------------------------------------- > First off a fixed point number is represented by a limited number of > bits. > You can define that limit when you construct a FixedPt: > fp = FixedPt.new(9.25,6,2) It's an interesting library and who knows -- I'd not be entirely too surprised if there were use cases out of hardware design for this. Anyway, I'm writing this because I am wondering if you also allow a String style constructor like FixedPt.new("9.25", 6, 2)? Otherwise you could get a bit of trouble when working with FixedPt numbers with lots of post-decimal digits because the float literal implies a certain inaccurateness.