29.12.2014 Views

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

RealView Compilation Tools Compiler Reference Guide - ARM ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C and C++ <strong>Compiler</strong> Implementation Limits<br />

D.3 Limits for floating-point numbers<br />

This section describes the characteristics of floating-point numbers.<br />

Table D-3 gives the characteristics, ranges, and limits for floating-point numbers. These<br />

constants are defined in the float.h include file.<br />

Table D-3 Floating-point limits<br />

Constant Meaning Value<br />

FLT_MAX Maximum value of float 3.40282347e+38F<br />

FLT_MIN<br />

Minimum normalized positive floating-point number value of<br />

float<br />

1.17549435e–38F<br />

DBL_MAX Maximum value of double 1.79769313486231571e+308<br />

DBL_MIN<br />

Minimum normalized positive floating-point number value of<br />

double<br />

2.22507385850720138e–308<br />

LDBL_MAX Maximum value of long double 1.79769313486231571e+308<br />

LDBL_MIN<br />

Minimum normalized positive floating-point number value of<br />

long double<br />

2.22507385850720138e–308<br />

FLT_MAX_EXP Maximum value of base 2 exponent for type float 128<br />

FLT_MIN_EXP Minimum value of base 2 exponent for type float –125<br />

DBL_MAX_EXP Maximum value of base 2 exponent for type double 1024<br />

DBL_MIN_EXP Minimum value of base 2 exponent for type double –1021<br />

LDBL_MAX_EXP Maximum value of base 2 exponent for type long double 1024<br />

LDBL_MIN_EXP Minimum value of base 2 exponent for type long double –1021<br />

FLT_MAX_10_EXP Maximum value of base 10 exponent for type float 38<br />

FLT_MIN_10_EXP Minimum value of base 10 exponent for type float –37<br />

DBL_MAX_10_EXP Maximum value of base 10 exponent for type double 308<br />

DBL_MIN_10_EXP Minimum value of base 10 exponent for type double –307<br />

LDBL_MAX_10_EXP Maximum value of base 10 exponent for type long double 308<br />

LDBL_MIN_10_EXP Minimum value of base 10 exponent for type long double –307<br />

<strong>ARM</strong> DUI 0348A Copyright © 2007, 2010 <strong>ARM</strong> Limited. All rights reserved. D-5<br />

Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!