Qbasicnews.com
July 03, 2020, 09:57:38 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Integer to Binary and vice versa  (Read 1478 times)
seph
Na_th_an
*****
Posts: 1915



« on: May 21, 2003, 07:42:51 PM »

I had made a program to convert binary to integer, but for my purposes, the integers are just too large and the number becomes a long (or a single or double or w/etf it is). Anyone know a better way to do this?
Logged

earn.
toonski84
__/--\__
*****
Posts: 2567



« Reply #1 on: May 21, 2003, 08:32:37 PM »

use long integers then?  how many bits are you converting to binary?  an integer should take anything up to 15 (16 compiled).
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
ak00ma
Ancient Guru
****
Posts: 669



« Reply #2 on: May 22, 2003, 08:53:08 AM »

Post the source-code,...
Logged

B 4 EVER
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!