BINVAL/de
(Difference between revisions)
m (1 revision) |
(→(**COPIED FROM ENGLISH PAGE**) =) |
||
Line 1: | Line 1: | ||
− | + | = <span class="f_Header">Funktion</span> = | |
− | + | Wandelt die Zeichenkettendarstellung einer binären Zahl in eine Zahl um. | |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> |
Revision as of 00:21, 2 March 2013
Contents |
Funktion
Wandelt die Zeichenkettendarstellung einer binären Zahl in eine Zahl um.
Syntax
var = Binval( s)
Remarks
Var |
A numeric variable that is assigned with the value of s. |
S |
Variable of the string type. Should contain only 0 and 1 digits. |
See also
STR , HEXVAL , HEX , BIN , VAL
Example
$regfile = "m48def.dat" ' specify the used micro $crystal = 8000000 ' used crystal frequency $baud = 19200 ' use baud rate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Dim S As String * 8 S = "11001100" Dim B As Byte ' assign value to B B = Binval(s) Print B End
Languages | English • Deutsch |
---|