On Jul 15, 6:50 am, Peng Yu <PengYu...@gmail.comwrote:
I'm wondering if there is any standard function that computes
mantissa a floating point number. I could use x - floor(x),
suppose x is a floating number. But this involves an
additional floating point operation (minus).
I'm not sure what you mean by the mantissa, since the expression
you give doesn't correspond to the usual definition. Anyway,
depending on what you really want, you might want to consider
frexp or modf.
--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34