beautypg.com

Floating point

Page 424

background image

Standard Header Files

UM017105-0511

396

Zilog Developer Studio II – ZNEO™
User Manual

If the value of an object of type char sign-extends when used in an expression, the value of
CHAR_MIN is the same as that of SCHAR_MIN, and the value of CHAR_MAX is the
same as that of SCHAR_MAX. If the value of an object of type char does not sign-extend
when used in an expression, the value of CHAR_MIN is 0, and the value of CHAR_MAX
is the same as that of UCHAR_MAX.

Floating Point

The <

float.h

> header defines macros that expand to various limits and parameters.

Macros

SHRT_MAX

Maximum value for an object of type short int.

SHRT_MIN

Minimum value for an object of type short int.

UCHAR_MAX

Maximum value for an object of type unsigned char.

UINT_MAX

Maximum value for an object of type unsigned int.

ULONG_MAX

Maximum value for an object of type unsigned long int.

USHRT_MAX

Maximum value for an object of type unsigned short int.

MB_LEN_MAX Maximum number of bytes in a multibyte character.

DBL_DIG

Number of decimal digits of precision.

DBL_MANT_DIG

Number of base-FLT_RADIX digits in the floating-point mantissa.

DBL_MAX

Maximum represented floating-point numbers.

DBL_MAX_EXP

Maximum integer such that FLT_RADIX raised to that power
approximates a floating-point number in the range of represented
numbers.

DBL_MAX_10_EXP Maximum integer such that 10 raised to that power approximates a

floating-point number in the range of represented value
((int)log10(DBL_MAX), and so on).

DBL_MIN

Minimum represented positive floating-point numbers.

DBL_MIN_EXP

Minimum negative integer such that FLT_RADIX raised to that
power approximates a positive floating-point number in the range of
represented numbers.

DBL_MIN_10_EXP

Minimum negative integer such that 10 raised to that power
approximates a positive floating-point number in the range of repre-
sented values ((int)log10(DBL_MIN), and so on).

FLT_DIG

Number of decimal digits of precision.

FLT_MANT_DIG

Number of base-FLT_RADIX digits in the floating-point mantissa.

FLT_MAX

Maximum represented floating-point numbers.

This manual is related to the following products: