Last modified on 10 November 2011, at 12:39

Rexx Programming/How to Rexx/number

In rexx, variables are typeless and are treated as variable length strings. When a number to a variable, the string that represents the number is stored in the variables. In rexx, numbers are simply a string of one or more digits with an optional decimalpoint.

NotationsEdit

Numbers can be represented using a variety of common notations:

Integer RepresentationEdit

Decimal RepresentationEdit

Floating Point RepresentationEdit

Exponential floating point numbers may be represented in either scientific notation or engineering notation. The default floating point representation is scientific notation.

parse numeric my_numeric_settings
say my_numeric_settings
9 0 SCIENTIFIC

BasesEdit

By default, numbers are expressed in decimal (base 10). In rexx, it is possible to express numbers in other bases.