Datasheet

C and C++ Compiler Implementation Limits
D-6 Copyright © 1999-2001 ARM Limited. All rights reserved. ARM DUI 0067D
D.4 Limits for floating-point numbers
Table D-4 and Table D-5 on page D-7 give the characteristics, ranges, and limits for
floating-point numbers in ARM and Thumb compilers.
Note
When a floating-point number is converted to a shorter floating-point number, it is
rounded to the nearest representable number.
The properties of floating-point arithmetic accord with IEEE 754.
Table D-4 Floating-point limits
Constant Meaning Value
FLT_MAX
Maximum value of
float
3.40282347e+38F
FLT_MIN
Minimum value of
float
1.17549435e–38F
DBL_MAX
Maximum value of
double
1.79769313486231571e+308
DBL_MIN
Minimum value of
double
2.22507385850720138e–308
LDBL_MAX
Maximum value of
long double
1.79769313486231571e+308
LDBL_MIN
Minimum value of
long double
2.22507385850720138e–308
FLT_MAX_EXP
Maximum value of base 2 exponent for type
float
128
FLT_MIN_EXP
Minimum value of base 2 exponent for type
float
–125
DBL_MAX_EXP
Maximum value of base 2 exponent for type
double
1024
DBL_MIN_EXP
Minimum value of base 2 exponent for type
double
–1021
LDBL_MAX_EXP
Maximum value of base 2 exponent for type
long double
1024
LDBL_MIN_EXP
Minimum value of base 2 exponent for type
long double
–1021
FLT_MAX_10_EXP
Maximum value of base 10 exponent for type
float
38
FLT_MIN_10_EXP
Minimum value of base 10 exponent for type
float
–37
DBL_MAX_10_EXP
Maximum value of base 10 exponent for type
double
308