legal? safe?

May 19, 2006 at 8:58am

legal? safe?

Since Atom doesn’t have a getDouble() method, can I safely use getFLoat()? It compiles, but I’m just wondering whether there’s any good reason not to do this:

double short_val = short_peak_val[1].getFloat();



May 19, 2006 at 4:36pm

Coercing an Atom’s float to a double is a widening conversion, so
it’s fine. Be careful when going the other way, though.

nick rothwell — composition, systems, performance — http://


You must be logged in to reply to this topic.