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


trunc

Trunc 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 trunc ( double x );

NOTE

For 68k processors returns an integral value.
Parameters:

Parameters for this function are:

x  
double  
The value to be truncated.  

Return:

The argument to an integral value in floating-point format.

Remarks:

Rounds its argument to an integral value in floating-point format nearest to but no larger in magnitude than the argument.


[ 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