Skip to content

shz_roundf

Markdown
SHZ_INLINE float shz_roundf(float x) SHZ_NOEXCEPT;

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

NameTypeDescription
xfloat

float

Returns the value of x rounded to the nearest integer, as a float.

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