Hp NonStop G-Series Instrukcja Użytkownika Strona 94

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 93
Data Conversion Library
Data Conversion
6–8 110838 Tandem Computers Incorporated
Parameters
lpElementValue Pointer to where the start of the converted string is placed.
The string may be preceded by a minus sign and contain a
decimal point (such as -12, +42.76). Leading zeros and
insignificant trailing zeros are not returned.
lpDisplayNumber Pointer to the Tandem display numeric to be converted.
nDisplayNumberLength Length of the Tandem display numeric (including any
separate sign).
nSignType Display numeric sign type of the Tandem display
numeric:
TDMGW_CONV_NOT_SIGNED = No sign
TDMGW_CONV_SLI_SIGNED = Leading embedded sign
TDMGW_CONV_STI_SIGNED = Trailing embedded sign
TDMGW_CONV_SLS_SIGNED = Leading separate sign
TDMGW_CONV_STS_SIGNED = Trailing separate sign
nDecimalPlaces Number of implied decimal places in the Tandem display
numeric.
TdmgwConvTdmTwosCompToCfText
This function converts strings from Tandem two’s complement data representation to
CF_TEXT clipboard format (null terminated string).
Function Prototype
void FAR PASCAL TdmgwConvTdmTwosCompToCfText
(char far * lpElementValue, out
void far * lpTwosCompNumber, in
int nTwosCompNumberLength, in
int nSignType, in
int nDecimalPlaces); in
If nDecimalPlaces is negative, then lpElementValue is scaled up after conversion.
Effectively lpElementValue is multiplied by ten to the power of the absolute value of
nDecimalPlaces. For details on the scaling of two’s complement numbers, see the
Tandem Data Definition Language (DDL) Reference Manual.
Parameters
lpElementValue Pointer to where the start of the converted string is
placed. The string may be preceded by a minus sign
and contain a decimal point (such as -12, +42.76).
Leading zeros and insignificant trailing zeros are not
returned.
lpTwosCompNumber Pointer to the two’s complement number.
nTwosCompNumberLength Length of Tandem two’s complement number in bytes
(must be 1, 2, 4, or 8).
Przeglądanie stron 93
1 2 ... 89 90 91 92 93 94 95 96 97 98 99 ... 148 149

Komentarze do niniejszej Instrukcji

Brak uwag