[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1

fegetround or fesetround Subroutine

Purpose

Gets and sets the current rounding direction.

Syntax

#include <fenv.h>

int fegetround (void)

int fesetround (round)
int round; 

Description

The fegetround subroutine gets the current rounding direction.

The fesetround subroutine establishes the rounding direction represented by the round parameter. If the round parameter is not equal to the value of a rounding direction macro, the rounding direction is not changed.

Parameters

round Specifies the rounding direction.

Return Values

The fegetround subroutine returns the value of the rounding direction macro representing the current rounding direction or a negative value if there is no such rounding direction macro or the current rounding direction is not determinable.

The fesetround subroutine returns a zero value if the requested rounding direction was established.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]