11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.20. DIGSyntax :Overview :Operators :Example :Variable = DIG Value , Digit numberReturns the value of a decimal digit.Value is a constant, variable, or expression, from which the digit numberis to be extracted.Digit number is a constant, variable, or expression, that representsthe digit to extract from value. (0 - 4 with 0 being the rightmost digit).DIM Var1 as BYTEDIM Var2 as BYTEVar1 = 124Var2 = DIG Var1 , 1 ‘ Extract the second digit’s valuePRINT @Var2 ‘ Display the value, which is 253Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!