[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2017-02-22T22:55:39-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/4526 2017-02-22T22:55:39-05:00 2017-02-22T22:55:39-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=24828#p24828 <![CDATA[Re: How to convert??]]>

Statistics: Posted by Tommy Jhon — Wed Feb 22, 2017 10:55 pm


]]>
2017-02-22T11:42:51-05:00 2017-02-22T11:42:51-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=24827#p24827 <![CDATA[Re: How to convert??]]>

Code:

  PRINT BIN$(255)      '1 byte(8 bits) maximumPRINT BIN$(32767)    'integer(2 byte, 15 bits) maximumPRINT BIN$(-32768)   'integer(2 byte, 16 bits) minimumPRINT BIN$(-1)       'all 16 bits on FUNCTION BIN$ (n%)  max% = 8 * LEN(n%) ': MSB% = 1   'uncomment for 16 (32 or 64) bit returns  FOR i = max% - 1 TO 0 STEP -1    'read as big-endian MSB to LSB    IF (n% AND 2 ^ i) THEN MSB% = 1: B$ = B$ + "1" ELSE IF MSB% THEN B$ = B$ + "0"  NEXTIF B$ = "" THEN BIN$ = "0" ELSE BIN$ = B$    'check for empty stringEND FUNCTION  
http://www.qb64.net/wiki/index.php/%26B

http://www.qb64.net/wiki/index.php/Binary

Statistics: Posted by burger2227 — Wed Feb 22, 2017 11:42 am


]]>
2017-02-22T00:01:36-05:00 2017-02-22T00:01:36-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=24826#p24826 <![CDATA[How to convert??]]> How to convert decimal number to binary in QBASIC? Whether it is an effective method or not?

Statistics: Posted by Tommy Jhon — Wed Feb 22, 2017 12:01 am


]]>