<-- Previous || Up || Next -->

Make Single Fast Function
Coerce Make Class

Public Function MakeSingleFast( _
    ByVal vValue As Single _
    ) As String

"Make String From Single (Fast)" or "Coerce Single To String (Fast)"
Coerce a Single (precision floating-point numeric) value into a 4-character string.
Return a four-character string containing the in-memory representation of the Single value vValue.
Similar to coercing a float value into character string in the C language.
Faster version of the MakeSingle function which has restrictive argument types (to avoid argument fix-up overhead).

    MakeSingleFast(0) = Chr$(0) + Chr$(0) + Chr$(0) + Chr$(0)
    MakeSingleFast(1) = Chr$(0) + Chr$(0) + Chr$(128) + Chr$(63)
    MakeSingleFast(2) = Chr$(0) + Chr$(0) + Chr$(0) + Chr$(64)
    MakeSingleFast(2.5) = Chr$(0) + Chr$(0) + Chr$(32) + Chr$(64)
See also:
    MakeSingle Function
    CoerceToSingleFast Function
    MakeVarType Function
vValue: The Single (precision floating-point numeric) value whose bytes are to be interpreted as a string.

Note: This function converts the string representation of the value to Unicode using 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.