nn::math::FModf Function

Syntax

f32 FModf(
     f32 x,
     f32 * y
);

Arguments

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.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL