Datasheet

Floating-point Types
The types float and double, together with the long double variant, are considered
to be floating-point types. The mikroC PRO for AVR’s implementation of an ANSI
Standard considers all three to be the same type.
Floating point in the mikroC PRO for AVR is implemented using the Microchip
AN575 32-bit format (IEEE 754 compliant).
An overview of the floating-point types is shown in the table below:
151
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5
Type Size in bytes Range
(unsigned) char
1 0 .. 255
signed char
1 - 128 .. 127
(signed) short (int)
1 - 128 .. 127
unsigned short (int)
1 0 .. 255
(signed) int
2 -32768 .. 32767
unsigned (int)
2 0 .. 65535
(signed) long (int)
4 -2147483648 .. 2147483647
unsigned long (int)
4 0 .. 4294967295
Type Size in bytes Range
float
4
-1.5 * 10
45
.. +3.4 * 10
38
double
4
-1.5 * 10
45
.. +3.4 * 10
38
double
4
-1.5 * 10
45
.. +3.4 * 10
38