Public Function CoerceToDoubleFast( _
ByVal vString As String _
) As Double
"Coerce String To Double (Fast)"
Return the Double value whose in-memory representation is the same as the first eight characters in string vString.
Coerce an 8-character string value into a Double precision floating point value.
Similar to casting a character string into a double value in the C language.
Similar to the CVD function in earlier versions of Microsoft Basic.
Faster version of the CoerceToDouble function which has restrictive argument types (to avoid argument fix-up overhead).
Examples: CoerceToDoubleFast(String$(8, 0)) = 0
CoerceToDoubleFast(String$(8, 1)) = 7.74860418548935E-304#
CoerceToDoubleFast(String$(8, 2)) = 5.37794075126812E-299#
See also: CoerceToDouble Function
MakeDoubleFast Function
CoerceToDateFast Function
vString: The string whose first eight characters are to be interpreted as a Double value.
Note: Function does NOT generate an error if vString less than or greater than eight characters long.
Note: If vString is more than eight characters long, the leftmost eight characters are coerced to a Double value. Note: This function first converts the string from Unicode to the default code page of the system.
v1.3 Change: Removed 16-bit support from this function.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.