DecToOctal()

DecToOctal()

Converts a Decimal Value to Octal

Syntax

      DecToOctal(<cN>) -><cNr>

Arguments

<cN> Number to be converted

Returns

<cNr> Number converted

Description

This function converts a string <cN> from an decimal value to an octal value.

Files

Library is libmisc

Seealso

DecToHexa(), DecToBin()

DecToHexa()

DecToHexa()

Converts a Decimal Value to Hexa

Syntax

      DecToHexa(<cN>) -><cNr>

Arguments

<cN> Number to be converted

Returns

<cNr> Number converted

Description

This function converts a string <cN> from an decimal value to an hexadecimal value.

Files

Library is libmisc

Seealso

DecToBin(), DecToOctal()

Harbour All Functions – D

Date()
Day()
Days()

DaysInMonth()
DaysToMonth()

dbAppend()
dbClearFilter()
dbCloseAll()
dbCloseArea()
dbCommit()
dbCommitAll()
dbCreate()
dbDelete()
dbEval()
dbF()
dbFilter()
dbGoBottom()
dbGoTo()
dbGoTop()
dbReCall()
dbRLock()
dbRLockList()
dbRUnlock()
dbSeek()
dbSelectArea()
dbSetDriver()
dbSetFilter()
dbSkip()
dbSkipper()
dbStruct()
dbUnlock()
dbUnlockAll()
dbUseArea()

DecToBin()
DecToHexa()
DecToOctal()

Deleted()
Descend()
DevOutPict()
DirChange()
DirRemove()
DiskSpace()

DMY()
Do()
DoW()

DOY
DToC()

DToR
DToS()

Conversion Functions

Harbour Conversion Functions

Bin2I Convert signed short encoded bytes into Harbour numeric
Bin2L Convert signed long encoded bytes into Harbour numeric
Bin2U Convert unsigned long encoded bytes into Harbour numeric
Bin2W Convert unsigned short encoded bytes into Harbour numeric
BitToC Converts position-dependent bits into characters
BinToDec Converts a Binary Value to Decimal
CToBit Converts a character string into a bit pattern
CToF Converts a special 8-byte string into a floating point number
CToN Converts a numeric string into a different base
DecToBin Converts a Decimal Value to Binary
DecToHexa Converts a Decimal Value to Hexa
DecToOctal Converts a Decimal Value to Octal
Fahrenheit Temperature conversion Celsius to Fahrenheit
FToC Converts a floating point number into a special 8-byte string
HexaToDec Converts a Hexa Value to Decimal
I2Bin Convert Harbour numeric into signed short encoded bytes
L2Bin Convert Harbour numeric into signed long encoded bytes
NToC Converts the numbers in a digit string into a different number base
OctalToDec Converts a Octal Value to Decimal
U2Bin Convert Harbour numeric into unsigned long encoded bytes
W2Bin Convert Harbour numeric into unsigned short encoded bytes
Word Converts double to integer values
XTOC Convert an expression to character type string

FT_DEC2BIN

FT_DEC2BIN()
 Convert decimal to binary

 Syntax

      FT_DEC2BIN( <nNum> ) -> cBinaryNumber

 Arguments

     <nNum> is the numeric expression to be converted.

 Returns

     A character string representing <nNum> in binary format.

 Description

     This function can be used in conjunction with any bit-wise
     operations.

 Examples

     QOut( FT_DEC2BIN(255) )        // "11111111"
     QOut( FT_DEC2BIN(2) )          // "00000010"

 Source: DECTOBIN.PRG

 Author: Greg Lief