Group Numbers and Bits
BitToC()
Converts bits set in an integer to characters.
BitToC( <nInteger>, [<cBitPattern>], [<lBlankSpaces>] ; // Default: .F. ) --> cResultString
Celsius()
Converts degrees Fahrenheit to Celsius.
Celsius( <nFahrenheit> ) --> nCelsius
ClearBit()
Sets one or more bits of a number to 0.
ClearBit( <nNumber|cHex>, ; // Type: NC [<nBitPos1>], ; // Type: N [<...nBitPos32>] ; // Type: N ) --> nNewValue
CtoBit()
Converts a string to an integer
CtoBit( <cString>, <cBitPattern> ) --> nInteger
CtoF()
Converts an 8 byte string to a floating point number
CtoF( <cFloatNumber> ) --> nFloatNumber
CtoN()
Converts a string to an integer of the specified base.
CtoN( <cDigits>, [<nBase>], ; // Default: 10 [<lNegativeNumbers>] ; // Default: .F. ) --> nInteger
Exponent()
Calculates the exponent of a floating point number (base 2).
Exponent( <nFloatNumber> ) --> nExponent
Fahrenheit()
Converts degrees Celsius to Fahrenheit.
Fahrenheit( <nCelsius> ) --> nFahrenheit
FtoC()
Converts a floating point number to an 8 byte string.
FtoC( <nFloatNumber> ) --> cFloatNumber
Infinity()
Returns the largest possible number (2**1023)
Infinity() --> nLargestNumber
IntNeg()
Converts an unsigned integer to a signed integer.
IntNeg( <nUnsigned|cHexUnsigned>, ; // Type: NC [<l32BitInteger>] ; // Type: L Default: .F. ) --> nSignedInteger
IntPos()
Converts a signed integer to an unsigned integer.
IntPos( <nSigned|cHexSigned>, ; // Type: NC [<l32BitInteger>] ; // Type: L Default: .F. ) --> nUnsigned
IsBit()
Checks whether a bit is set at a specified position.
IsBit( <nInteger|cHex>, ; // Type: NC [<nBitPos>] ; // Type: N Default: 1 ) --> lBitIsSet
LtoN()
Converts a logic to a numeric value.
LtoN( [<lValue>] ; // Default: .F. ) --> nLogicValue
Mantissa()
Calculates the mantissa of a floating point number (base 2).
Mantissa( <nFloatNumber> ) --> nMantissa
NtoC()
Converts an integer to a string of digits for a specified base.
NtoC( <nUnsigned|cHex>, ; // Type: NC [<nBase>], ; // Type: N Default: 10 [<nLength>], ; // Type: N [<cFillCharacter>] ; // Type: C Default: Chr(32) ) --> cString
NumAND()
Bitwise AND for a list of 16 bit integers.
NumAND( <nInteger1|cHex1>, ; // Type: NC <nInteger2|cHex2>, ; // Type: NC [<...nIntegerN|cHexN>] ; // Type: NC ) --> nANDed_Integer
NumCount()
Increments or sets the start value of the internal counter.
NumCount( [<nIncrement|nStartValue>], ; // Default: 0 [<lStartValue>] ; // Default: .F. ) --> nCounter
NumHigh()
Retrieves the high byte of a 16 bit integer.
NumHigh( <nInteger|cHex> ; // Type: NC ) --> nHighByte
NumLow()
Retrieves the low byte of a 16 bit integer.
NumLow( <nInteger|cHex> ; // Type: NC ) --> nLowByte
NumMirr()
Mirrors 8 or 16 bits of a 16 bit integer.
NumMirr( [<nInteger|cHex>], ; // Type: NC [<lEightBitsOnly>] ; // Type: L Default: .F. ) --> nInteger
NumNOT()
Bitwise NOT of a 16 bit integer.
NumNOT( <nInteger|cHex> ; // Type: NC ) --> nNOTed_Integer
NumOR()
Bitwise OR for a list of 16 bit integers.
NumOR( <nInteger1|cHex1>, ; // Type: NC <nInteger2|cHex2>, ; // Type: NC [<...nIntegerN|cHexN>] ; // Type: ) --> nORed_Integer
NumRoL()
Left rotation of a 16 bit integer.
NumRoL( <nInteger1|cHex1>, ; // Type: NC [<nInteger2|cHex2>], ; // Type: NC [<lEightBitsOnly>] ; // Type: L Default: .F. ) --> nLeftRotatedInteger
NumXOR()
Bitwise XOR of two 16 bit integers.
NumXOR( <nInteger1|cHex1>, ; // Type: NC <nInteger2|cHex2> ; // Type: NC ) --> nXORed_Integer
Rand()
Calculates random numbers between 0 and 1.
Rand( [<nStartValue>] ; // Default: 1 ) --> nRandomNumber
Random()
Calculates random numbers as 16 bit integers.
Random( [<lSignedInteger>] ; // Default: .F. ) --> nRandomInteger
SetBit()
Sets one or more bits of an integer to 1.
SetBit( <nInteger|cHex>, ; // Type: NC <nBitPos1>, ; // Type: N [<...nBitPos32>] ; // Type: N ) --> nNewValue