On Tue, 20 Mar 2001, Jean-Sebastien ROY wrote:
> > be possible to hold 30-bit floats in a reference. However Ruby's standard
> > Floats are 64-bit (though each held in a 160-bit box), and
> > single-precision floats (like C's) are 32-bit.
> There is a single precision float class in Ruby ?

no

> Unless a new class of floats is defined, maybe ? (with a specific way to 
> For some kind of floating point intensive calculations that do not 
> require much precision (exactly what I need ;-), it may improve the 
> speed noticeably. 

creating a new class of floats for ruby would be worthwhile if you wanted
low-memory use in a context where you cannot reasonably use NArray (in
which case it'd be interesting to know why).  hint: you probably should
use NArray instead of even thinking about this issue.  =) 

matju