Skip to content

shz_truncf

Markdown
SHZ_INLINE float shz_truncf(float x) SHZ_NOEXCEPT;

Replacement for the <math.h> routine, truncf().

NameTypeDescription
xfloat

float

Returns the value of with its fractional component discarded.

  • This routine only returns valid values for the input range INT32_MIN <= x <= INT32_MAX.
  • C++ equivalent: shz::truncf
  • Type-generic form: none
  • Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
  • Defined in: sh4zam/shz_scalar.h:112
  • Module: Scalar, section "Rounding"