FModf

nn::math::FModf Function

Syntax

f32 FModf(
     f32 x,
     f32 * y
);

Parameters

Name Description
in x Original floating-point number.
out y Pointer to the buffer that stores the integer part.

Return Values

Returns the fractional part.

Description

Breaks up a floating-point value into an integer part and a fractional part. The integer and fractional parts both have the same sign as x.

This function uses the standard modff function.

Revision History

2011/08/26
Added text about internal implementation.
2010/01/07
Initial version.

CONFIDENTIAL