| DSTRTON() | Преобразует строку c "double"-представлнием в clipper-число. |
| FSTRTON() | Преобразует строку c "float"-представлнием в clipper-число. |
| FT_BYT2BIT() | Convert byte to string of 1's and 0's |
| FT_BYT2HEX() | Convert byte to hexadecimal version of its binary value |
| FT_D2E() | Convert decimal to scientific notation |
| FT_DEC2BIN() | Convert decimal to binary |
| FT_E2D() | Convert scientific notation string to a decimal |
| FT_ESCCODE() | Convert Lotus style escape codes |
| FT_HEX2DEC() | Convert a hex number to decimal |
| FT_INVCLR() | Get the inverse of a color |
| FT_NTOW() | Translate numeric value to words |
| FT_SQZN() | Compress a numeric value into a character string |
| FT_UNSQZN() | Uncompress a numeric compressed by FT_SQZN() |
| FT_XTOY() | Convert from any data type to any other data type |
| HASHNAME() | Возвращает строку, из которой был получен хэш-код. |
| HASHSTR() | Возвращает хэш-код строки. |
| STR2VAR() | Конвертировать uucode строку в исходные данные. |
| VAR2STR() | Конвертировать данные в uucode строку. |
FT_BYT2BIT( <cByte> ) -> cBitPattern
9-character string, consisting of 1's and 0's, representing bits 0 through 7 of parameter byte, with space between bits 3 and 4. Returns NIL if parameters are faulty.
Can be used to show results of bit manipulation, both before and after. Binary representation follows right-to-left convention of bit position numbering, 0 through 7. Space between high and low nibbles for clarity and easy comparison to hexadecimal notation.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BYT2HEX( cByte ) -> cHexValue
Three-character string, consisting of two digits of hexadecimal notation and letter 'h' to signify hex. Returns NIL if parameters are faulty.
Can be used to show results of bit manipulation, both before and after.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_D2E( <nDec>, <nPrecision> ) -> <cNumE>
<cNumE> A string representing a number in scientific notation
Given a decimal number and the desired precision, a string representing the equivalent in scientific notation is returned.
FT_DEC2BIN( <nNum> ) -> cBinaryNumber
A character string representing <nNum> in binary format.
This function can be used in conjunction with any bit-wise operations.
FT_E2D( <cNumE> ) -> <nDec>
<nDec> Decimal number
Given a string in the format x.yEz, the decimal equivalent is returned.
FT_ESCCODE( <cASCII> ) -> <cPrinterFormat>
The binary version of an ASCII coded printer setup string.
This function is useful for allowing the user to enter printer control codes in Lotus-style ASCII format, and then having this function convert that code to the format that the printer needs to receive.
FT_HEX2DEC( <cHexNum> ) -> nDecNum
A decimal number.
Converts a hexadecimal number to a BASE 10 decimal number. Useful for using FT_INT86().
FT_INVCLR( [ <cDsrdColor> ] ) -> cColor
The inverse of the passed color.
This function inverts a passed color (in the Clipper format: ??/??), e.g., "W/N" is converted to "N/W".
FT_NTOW( <nNumber> ) -> cWords
A text string representing <nNumber>
Translates numeric input to a text string.
FT_NTOW is intended to be used with integers only. Since I don't know what your application will be, I can't assume the type of fraction you want returned (ninety nine cents, 99/100, .99, etc). If you want the fraction in words, just pass it as an integer.
Do not pass a negative number! Handle negative numbers any way you need to in your code. (ie: CR, DB, Negative, Minus, etc.)
Also, numeric 0 is returned as a null string. You will need to make a decision how to output it (zero dollars, no dollars, etc).
FT_SQZN( <nValue> [, <nSize> [, <nDecimals> ] ] ) -> cCompressed
No arguments
cCompressed - Compressed string, 50% the size of nSize
The FT_SQZN function allows a numeric value to be compressed when stored in the database. The compression is 50% the storage space of the original number. The companion function, FT_UNSQZN returns the original number from the compressed string.
FT_UNSQZN( <cCompressed>, <nSize> [, <nDecimals> ] ) -> nValue
nValue - Uncompressed numeric value
The FT_UNSQZN function returns the numeric value from the compressed string. The compression is 50% the storage space of the original number. The original number must have been compressed using the FT_SQZN() function.
This function, along with FT_SQZN() can be used to reduce disk storage requirements for numeric fields in a database file.
FT_XTOY( <xValueToConvert>, <cTypeToConvertTo> ; [, <lWantYesNo> ] ) -> xResult
The original value converted to the new type.
This function converts a value of character, date, numeric, logical, array or code block type to any of the other type. While it is guaranteed to return a value of the correct type, that value may not be meaningful (i.e., converting from a code block returns an EMPTY() value of the desired type).
| Пред. | Начало | След. |
| VIDEO | Уровень выше | DATABASE |