Floating-point literals can be defined in following ways:
1. Decimal value can be assigned i.e, integer and preceded by + or - sign.
2. Decimal point.
3. Fraction
4. Exponent (sign : e or E)
Exponent is a part of e or E followed by integer values with the sign + or - . Floating point literal must contain at least one digit and a decimal point (e or E).
Example :
4.5678
-2.3456
12.45E + 19
.2e.098
1. Decimal value can be assigned i.e, integer and preceded by + or - sign.
2. Decimal point.
3. Fraction
4. Exponent (sign : e or E)
Exponent is a part of e or E followed by integer values with the sign + or - . Floating point literal must contain at least one digit and a decimal point (e or E).
Example :
4.5678
-2.3456
12.45E + 19
.2e.098
No comments:
Post a Comment