GemStone historically supports + in exponent notation, e.g. 1E+3. This
does not follow the ANSI standard nor the VW behavior, which interprets
that + as an addition operator.
Starting in v3.2, the + operator is disallowed when creating literal Doubles
in exponent notation; to avoid the risk of different results,
For example:
- In GemStone versions before 3.2: 1E+3 = 1E3 = 1000
- In VisualWorks: 1E+3 = 1E + 3 = 4
In GemStone 3.2 and later: 1E+3 creates a compiler error.
- to get results similar to VisualWorks, use 1E0+3.
- to get results similar to older versions of GemStone, use 1E3
Last updated: 5/8/14