__setrnd

Purpose

Sets the rounding mode.

Prototype

double __setrnd (int mode);

Parameters

The allowable values for mode are:
  • 0 — round to nearest
  • 1 — round to zero
  • 2 — round to +infinity
  • 3 — round to -infinity