Framework (A-Z)

Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.



double c = fma(2, 3, 4);  // Sets c to 2 * 3 + 4
Description The fma(x, y, z) function performs floating-point multiply-add. This is the operation (x * y) + z, but the intermediate result is not rounded to the destination type. This can sometimes improve the precision of a calculation.
fma(x, y, x)
x double, float or int
y double, float or int
z double, float or int
Returns double
Usage Application
Updated on July 07, 2011 11:08:17pm PDT

Creative Commons License