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 />

modf<br />

Task function category: Mathematical Functions<br />

Breaks the argument x into integral and fractional parts, each of which has the same sign as the<br />

argument. Returns an array of two elements, the first element being the fractional part and the<br />

second element being the integral part.<br />

Usage<br />

modf(x)<br />

Arguments<br />

• x<br />

x value.<br />

Examples<br />

set res = modf(2.5)<br />

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

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

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

/* Display: modf(2.5) = [0.5000, 2.0000] */<br />

Related Topics<br />

Library of Functions for Tasks<br />

938<br />

Eldo® User's Manual, 15.3

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

Saved successfully!

Ooh no, something went wrong!