beautypg.com

AMT Datasouth PAL User Manual

Page 80

background image

cvs

74

cvs

Description

Converts a numeric value to a string containing the value's human readable decimal representation.

Usage

ValNum DummyStr

cvs

DecStr

ValNum

Integer or fixed-point. Numeric value to convert into a string.

DummyStr

String. Required for historical compatibility. The interpreter does not use this
parameter.

DecStr

String. String created by the interpreter which contains the human readable
decimal representation of ValNum.

Comments

The interpreter converts ValNum to its human readable decimal representation. If then creates
DecStr containing the result.

For positive values, DecStr will not contain a leading plus (+) sign. DecStr will contain a leading
negative (-) sign for negative DecStr values. DecStr will not include any leading zeroes or
commas. For fixed-point values, DecStr will contain a decimal point (.) with at least one digit both
before and after the decimal point.

The following examples demonstrate some of the results possible using the cvs operator.

0.1 ()

cvs

(0.1)

-1.0 ()

cvs

(-1.0)

+00.01 ()

cvs

(0.01)

-10.00 ()

cvs

(-10.0)

45 ()

cvs

(45)

-14 ()

cvs

(-14)