2.5.6.10 vUnsignedLong

The vUnsignedLong custom input type specifies an unsigned long integer derived from a source token that MUST be a vNumAny custom token grouping or a PtgString or PtgCy parse token. It contains the following computed properties.

Value: This property specifies an unsigned long integer derived from the source token Value as follows.

If the source token Value can be converted to a double, as described in [MSDN-ToDouble] or as specified in [MS-OAUT] section 2.2.25 for a date value, the Value is equal to an unsigned long integer calculated as follows.

Use the conversion method described in [MSDN-ToDouble] or [MS-OAUT] section 2.2.25 to obtain a double value. If the double value is not an integer, round the value towards zero to the next integer. If the integer is greater than or equal to zero, the Value is equal to the integer modulo 4294967296. Otherwise, Value is equal to the sum of the integer modulo 4294967296 and 4294967296.

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

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

Unit: This property specifies the Unit of the operand token and this property has no value for this custom input type.