nn::math::F32ToS16 Function

Syntax

s16 F32ToS16(
     f32 x
);

Arguments

Name Description
in x Value to be converted to s16-type.

Return Values

Returns an s16-type value that has the same value as x.

Description

Converts values in f32 format to s16 format.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL