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