Syntax:
DectoBcd( ByteVariable )
Command Availability:
Available on all microcontrollers.
Explanation:
Converts numbers from Decimal to Binary Coded Decimal format. Support Bytes only.
You can add this function. Just add this to your GCBASIC program and then call it when you need it.
Example:
Function DecToBcd(va) as Byte
DecToBcd=(va/10)*16+va%10
End FunctionAlso see BcdToDec_GCB

