Navigation bar
  Start Previous page
 52 of 283 
Next page End 47 48 49 50 51 52 53 54 55 56 57  

43
CNibble
Type
Function returning Nibble
Invocation
CNibble(arg)
Parameter
Method
Type
Description
arg
ByVal
integral or Boolean
The value to convert to a Nibble value.
Discussion
This function converts a numeric or Boolean value to a Nibble value.  If the passed value is a Bit or
Boolean value the three most significant bits of the return value will be zero.  In all other cases, the result
will be the four least significant bits of the passed value without regard to its type.  
Example
Dim nVal as Nibble
nVal = CNibble(Register.PortC)
Compatibility
This function is not available in BasicX compatibility mode.
Previous page Top Next page