English
Language : 

CC78K4 Datasheet, PDF (42/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 2 CONSTRUCTS OF C LANGUAGE
(b) Floating-point types
The floating-point types are subdivided into three types.
• float
• double
• long double
In this compiler, double and long double types as well as the float type are supported as a floating-point
expression for the single precision normalized number that is specified in ANSI/IEEE 754-1985. Thus, float,
double, and long double types have the same value range.
Table 2-3. List of Basic Data Types
Type
(signed) char
unsigned char
(signed) short int
unsigned short int
(signed) int
unsigned int
(signed) long int
unsigned long int
float
double
long double
Value Range
–128 to +127
0 to 255
–32768 to +32767
0 to 65535
–32768 to +32767
0 to 65535
–2147483648 to +2147483647
0 to 4294967295
1.17549435E–38F to 3.40282347E+38F
1.17549435E–38F to 3.40282347E+38F
1.17549435E–38F to 3.40282347E+38F
• The signed keyword may be omitted. However, with the char type, it is judged as signed char or
unsigned char depending on the condition at compilation.
• short int data and int data are handled as data that have the same value range but are of
different types.
• unsigned short int data and unsigned int data are handled as data that have the same value
range but are of different types.
• float, double, and long double data are handled as data that have the same value range but are
of different types.
42
User’s Manual U15556EJ1V0UM