mikroC
making it simple...
Binary Constants
All constants starting with
overriding suffixes, the data type of an binary constant is derived from its value,
according to the rules presented above. For example,
short
Octal Constants
All constants with an initial zero are taken to be octal. If an octal constant contains
the illegal digits 8 or 9, an error is reported. In the absence of any overriding suf-
fixes, the data type of an octal constant is derived from its value, according to the
rules presented above. For example,
Floating Point Constants
A floating-point constant consists of:
- Decimal integer,
- Decimal point,
- Decimal fraction,
-
e
- Type suffix:
You can omit either the decimal integer or the decimal fraction (but not both). You
can omit either the decimal point or the letter
nent (but not both). These rules allow for conventional and scientific (exponent)
notations.
Negative floating constants are taken as positive constants with the unary operator
minus (
mikroC limits floating-point constants to range
±1.17549435082E38 .. ±6.80564774407E38
mikroC floating-point constants are of type
mentation of ANSI Standard considers
long double
MikroElektronika: Development tools - Books - Compilers
.
or
and a signed integer exponent (optional),
E
or
or
or
f
F
l
) prefixed.
-
variant) to be the same type.
mikroC - C Compiler for Microchip PIC microcontrollers
(or
) are taken to be binary. In the absence of any
0b
0B
will be treated as
0777
(optional).
L
(or
e
.
double
and
float
will be treated as
0b11101
.
int
) and the signed integer expo-
E
. Note that mikroC's imple-
(together with the
double
page
41
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?