10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Library of Functions for Tasks<br />

frexp<br />

Task function category: Mathematical Functions<br />

Breaks a floating-point number into a normalized fraction and an integral power of 2. Returns<br />

an array of 2 elements, the first element being the normalized fraction and the second element<br />

being the integral power of 2.<br />

Usage<br />

frexp(x)<br />

Arguments<br />

• x<br />

Floating point number.<br />

Examples<br />

set res = frexp(2.5)<br />

set frac = res[res.imin]<br />

set int_pow = res[res.imin + 1]<br />

fprint(stdout, "frexp(2.5) = [%.4f, %.4f]\n", frac, int_pow)<br />

/* Display: frexp(2.5) = [0.6250, 2.0000] */<br />

Related Topics<br />

Library of Functions for Tasks<br />

Eldo® User's Manual, 15.3 907

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!