-" or
"+" followed by a symbol that is a valid number.
If value is omitted, the constant
name will return its value in uppercase.
::class MathConstants public
::constant pi 3.14159265
::constant author "Isaac Asimov"
::constant absolute_zero -273.15
::constant e ( rxcalcexp(1) )
::constant eSquare (self~e ** 2)
::constant primes (2, 3, 5, 7, 11, 13)
::class Search
::constant caseless
::requires rxmath library
say "Pi is" .MathConstants~pi -- displays "Pi is 3.14159265"
instance = .MathConstants~new
say "Pi is" instance~pi -- also displays "Pi is 3.14159265"
say .Search~caseless -- "CASELESS"
::class MathConstants public
::constant pi 3.14159265
::class Search
::constant caseless
-" or "+").
For a calculated ::CONSTANT directive to reference another calculated
::CONSTANT directive, the referenced directive must be defined earlier in
order of appearance.
Forward references to calculated ::CONSTANT directives are not allowed.
-" or "+".
An expression enclosed in parentheses is not allowed.