Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

To support the 'least surprising' approach, groovy literals with decimal points are instantiated as java.math.BigDecimal types rather than binary floating point types (Float, Double). Float and Double types can of course be created explicitly or via the use of a suffix (see table below). Exponential notation is supported for decimal types (BigDecimal, Double Float) with or without a signed
exponent signed exponent (1.23e-23). Hexadecimal and octal literals are also supported. Hexadecimal numbers are specified
in specified in the typical format of "0x" followed by hex digits (e.g. 0x77).

...