wconstant

<< Click to Display Table of Contents >>

Navigation:  User guide > Constants >

wconstant

This represents a double-precision number. It should contain a decimal point and can be any size. The decimal point must be embedded; it must have a digit both before and after it.

The letter U can also be used as a wconstant. Its meaning is "undefined" (invalid/faulty). It is in fact internally represented as a very large negative number.

IMPORTANT: Numeric variables ivars and wvars are initially set to zero, not undefined unless RCP UNDEFINED is used. You must explicitly assign an undefined value, or must use the data-reading formats IFF (Integer Field Failed) and IFB (Integer Field Blank) to control such assignment.

Examples of wconstants:

-1234.0

56.4390

0.000000000007

3456543458760.0

-100.58888

0.0

u

The following definitions use wconstants:

dw $small=0.015,

dw $perc=$value*100.0/$total,