2.5.7.3 vDouble

The vDouble custom input type specifies a vNum derived from a source token that MUST be a vNumAny, PtgStr1, PtgCy, or PtgMissArg. It contains the following computed properties.

Value

This property specifies a double precision floating-point number derived from the source token value as follows.

If the source token value can be converted to a double, as described in [MSDN-ToDouble], Value is the result of the conversion.

If the source token value is equal to TRUE (case insensitive), Value is equal to 1. If the source token value is equal to FALSE (case insensitive), Value is equal to 0.

If the source token is a PtgMissArg, Value is equal to 0.

In all other cases, the input argument is not valid.

Type

This property specifies a token type. If the source token is a vUnitType, Type is equal to the token type of the source token. Otherwise, Type is equal to the token type of PtgNum.

Dimension

This property specifies the dimension of the value. If the source token type is a PtgNumMultiDim, Dimension is equal to the dimension of the source token. If the source token is any other vUnitType, Dimension is equal to one. Otherwise, Dimension is equal to zero.

Unit

This property specifies the measurement unit of the value. If the source token is a PtgNumMultiDim, Unit is equal to the unit of the source token. Otherwise, Unit is equal to Type.