Anonymous user
Arithmetic evaluation: Difference between revisions
m
→{{header|REXX}}: aligned bullet points, added verbage.
(Updated D entry) |
m (→{{header|REXX}}: aligned bullet points, added verbage.) |
||
Line 3,831:
=={{header|REXX}}==
Several additional operators are supported as well as several forms of exponentiated numbers:
:::* '''^''' exponentiation, as well as '''**'''
:::* '''//''' remainder division
:::* '''%''' integer division
:::* '''<big>÷</big>''' in addition to '''<big>/</big>'''
:::* '''&''' for logical '''
:::* '''|''' for logical '''
:::* '''&&'''
:::* '''||''' for concatenation
:::* '''[ ] { }''' as grouping symbols, as well as '''( )'''
:::* 12.3e+44 ("single" precision)
:::* 12.3E+44 ("single" precision)
:::* 12.3D+44 ("double" precision)
:::* 12.3Q+44 ("extended" or "quad" precision)
<lang rexx>/*REXX pgm evaluates an infix-type arithmetic expression & shows result.*/
nchars = '0123456789.eEdDqQ' /*possible parts of a #, sans ± */
|