Real Liternal
About
Real literals are fairly consistent between most programming languages, but
tend to vary between cultures. In the United States, the period is used to separate
the whole part from the fractional part of the number. However, in Europe
for example,
it is the comma which is used.
This section allows the format of real numbers to be defined. If
pseudocode is being produced, don't hesitate to use the target culture's
format.
Java Example |
[Real Literal] |
Text |
= {integral}.{fractional} |
Text Key
The text key is used to generate the syntax of a real number.
Fields |
Contents |
{integral} |
The digits representing the whole
(integral) part of
the number |
{fractional} |
This digits representing the factional
part of the number |
|