Real
constants are often called Floating Point constants. The real constants could
be written in two parts, first is decimal part and another is fractional part.
Following
rules must be observed while constructing real constants expressed in
fractional form:- A real constant must have at least one digit.
- It must have only a decimal point.
- It could be either positive or negative.
- Default sign is positive.
- No commas or blanks are allowed within a real constant.
Ex.:
2344.56
+5222.20
-342.736
-438.5792
No comments:
Post a Comment