clValue::Frac Method

TOpenCLValue *Frac(TOpenCLValue *X) const;

Fractional part of values.

#NameTypeDescription
1XTOpenCLValue *
Remarks:

Calculates the fractional part for all object values in-place.

Examples
#include "clMtxExpr.h"

using namespace Dew;
using namespace Dew::Math;

void Example()
{
    clValue a, b;

    b.Copy(2.3);
    a.Frac(b);  // a = 0.3
}
See Also: clValue::Trunc, clValue::Round
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler