Netcruzer Library API  V2.03
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
float.h File Reference

Standard C Libraries -. More...

Go to the source code of this file.

Macros

#define DBL_DIG   __DBL_DIG__
 
#define DBL_EPSILON   __DBL_EPSILON__
 
#define DBL_MANT_DIG   __DBL_MANT_DIG__
 
#define DBL_MAX   __DBL_MAX__
 
#define DBL_MAX_10_EXP   __DBL_MAX_10_EXP__
 
#define DBL_MAX_EXP   __DBL_MAX_EXP__
 
#define DBL_MIN   __DBL_MIN__
 
#define DBL_MIN_10_EXP   __DBL_MIN_10_EXP__
 
#define DBL_MIN_EXP   __DBL_MIN_EXP__
 
#define FLT_DIG   __FLT_DIG__
 
#define FLT_EPSILON   __FLT_EPSILON__
 
#define FLT_MANT_DIG   __FLT_MANT_DIG__
 
#define FLT_MAX   __FLT_MAX__
 
#define FLT_MAX_10_EXP   __FLT_MAX_10_EXP__
 
#define FLT_MAX_EXP   __FLT_MAX_EXP__
 
#define FLT_MIN   __FLT_MIN__
 
#define FLT_MIN_10_EXP   __FLT_MIN_10_EXP__
 
#define FLT_MIN_EXP   __FLT_MIN_EXP__
 
#define FLT_RADIX   2
 
#define FLT_ROUNDS   1
 
#define LDBL_DIG   __LDBL_DIG__
 
#define LDBL_EPSILON   __LDBL_EPSILON__
 
#define LDBL_MANT_DIG   __LDBL_MANT_DIG__
 
#define LDBL_MAX   __LDBL_MAX__
 
#define LDBL_MAX_10_EXP   __LDBL_MAX_10_EXP__
 
#define LDBL_MAX_EXP   __LDBL_MAX_EXP__
 
#define LDBL_MIN   __LDBL_MIN__
 
#define LDBL_MIN_10_EXP   __LDBL_MIN_10_EXP__
 
#define LDBL_MIN_EXP   __LDBL_MIN_EXP__
 

Detailed Description

Standard C Libraries -.

Compiler:
MPLAB XC16 compiler

Description

The header file, float.h, consists of macros that specify various properties of floating-point types. These properties include number of significant figures, size limits and what rounding mode is used.

Software License Agreement

The documentation in this header file has been copied from the documentation provided with the Microchip MPLAB XC16 compiler. The original license agreement included with the XC16 compiler applies!

Macro Definition Documentation

#define DBL_DIG   __DBL_DIG__

Description: Number of decimal digits of precision in a double precision floating-point value.

Include: <float.h>

Value: 6 by default, 15 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_EPSILON   __DBL_EPSILON__

Description: The difference between 1.0 and the next larger representable double precision floating-point value

Include: <float.h>

Value: 1.192093e-07 by default, 2.220446e-16 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MANT_DIG   __DBL_MANT_DIG__

Description: Number of base-FLT_RADIX digits in a double precision floating-point significand.

Include: <float.h>

Value: 24 by default, 53 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MAX   __DBL_MAX__

Description: Maximum finite double precision floating-point value.

Include: <float.h>

Value: 3.402823e+38 by default, 1.797693e+308 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MAX_10_EXP   __DBL_MAX_10_EXP__

Description: Maximum integer value for a double precision floating-point exponent in base 10.

Include: <float.h>

Value: 38 by default, 308 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MAX_EXP   __DBL_MAX_EXP__

Description: Maximum integer value for a double precision floating-point exponent in base FLT_RADIX.

Include: <float.h>

Value: 128 by default, 1024 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MIN   __DBL_MIN__

Description: Minimum double precision floating-point value.

Include: <float.h>

Value: 1.175494e-38 by default, 2.225074e-308 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MIN_10_EXP   __DBL_MIN_10_EXP__

Description: Minimum negative integer value for a double precision floating-point exponent in base 10.

Include: <float.h>

Value: -37 by default, -307 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define DBL_MIN_EXP   __DBL_MIN_EXP__

Description: Minimum negative integer value for a double precision floating-point exponent in base FLT_RADIX.

Include: <float.h>

Value: -125 by default, -1021 if the switch -fno-short-double is used

Remarks:
By default, a double type is the same size as a float type (32-bit representation). The -fno-short-double switch allows the IEEE 64-bit representation to be used for a double precision floating-point value.

#define FLT_DIG   __FLT_DIG__

Description: Number of decimal digits of precision in a single precision floating-point value.

Include: <float.h>

Value: 6

#define FLT_EPSILON   __FLT_EPSILON__

Description: The difference between 1.0 and the next larger representable single precision floating-point value.

Include: <float.h>

Value: 1.192093e-07

#define FLT_MANT_DIG   __FLT_MANT_DIG__

Description: Number of base-FLT_RADIX digits in a single precision floating-point significand.

Include: <float.h>

Value: 24

#define FLT_MAX   __FLT_MAX__

Description: Maximum finite single precision floating-point value.

Include: <float.h>

Value: 3.402823e+38

#define FLT_MAX_10_EXP   __FLT_MAX_10_EXP__

Description: Maximum integer value for a single precision floating-point exponent in base 10.

Include: <float.h>

Value: 38

#define FLT_MAX_EXP   __FLT_MAX_EXP__

Description: Maximum integer value for a single precision floating-point exponent in base FLT_RADIX.

Include: <float.h>

Value: 128

#define FLT_MIN   __FLT_MIN__

Description: Minimum single precision floating-point value.

Include: <float.h>

Value: 1.175494e-38

#define FLT_MIN_10_EXP   __FLT_MIN_10_EXP__

Description: Minimum negative integer value for a single precision floating-point exponent in base 10.

Include: <float.h>

Value: -37

#define FLT_MIN_EXP   __FLT_MIN_EXP__

Description: Minimum negative integer value for a single precision floating-point exponent in base FLT_RADIX.

Include: <float.h>

Value: -125

#define FLT_RADIX   2

Description: Radix of exponent representation.

Include: <float.h>

Value: 2

Remarks:
The base representation of the exponent is base-2 or binary.

#define FLT_ROUNDS   1

Description: Represents the rounding mode for floating-point operations.

Include: <float.h>

Value: 1

Remarks:
Rounds to the nearest representable value.

#define LDBL_DIG   __LDBL_DIG__

Description: Number of decimal digits of precision in a long double precision floating-point value.

Include: <float.h>

Value: 15

#define LDBL_EPSILON   __LDBL_EPSILON__

Description: The difference between 1.0 and the next larger representable long double precision floating-point value.

Include: <float.h>

Value: 2.220446e-16

#define LDBL_MANT_DIG   __LDBL_MANT_DIG__

Description: Number of base-FLT_RADIX digits in a long double precision floating-point significand.

Include: <float.h>

Value: 53

#define LDBL_MAX   __LDBL_MAX__

Description: Maximum finite long double precision floating-point value.

Include: <float.h>

Value: 1.797693e+308

#define LDBL_MAX_10_EXP   __LDBL_MAX_10_EXP__

Description: Maximum integer value for a long double precision floating-point exponent in base 10.

Include: <float.h>

Value: 308

#define LDBL_MAX_EXP   __LDBL_MAX_EXP__

Description: Maximum integer value for a long double precision floating-point exponent in base FLT_RADIX.

Include: <float.h>

Value: 1024

#define LDBL_MIN   __LDBL_MIN__

Description: Minimum long double precision floating-point value.

Include: <float.h>

Value: 2.225074e-308

#define LDBL_MIN_10_EXP   __LDBL_MIN_10_EXP__

Description: Minimum negative integer value for a long double precision floating-point exponent in base 10.

Include: <float.h>

Value: -307

#define LDBL_MIN_EXP   __LDBL_MIN_EXP__

Description: Minimum negative integer value for a long double precision floating-point exponent in base FLT_RADIX.

Include: <float.h>

Value: -1021