[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


round

Round rounds its argument to an integral value in floating-point format.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <math.h>
double round ( double x );
Parameters:

Parameters for this function are:

x  
double  
The value to be rounded  

Return:

The argument rounded to an integral value in floating point format nearest to but no larger in magnitude than the argument.

Remarks:

Rounding halfway cases away from zero, regardless of the current rounding direction

See Also:

"roundtol"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000