The Dink Network

Reply to Re: Before...

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 15th 2018, 01:52 PM
duck.gif
Toof
Peasant He/Him
I disagree. 
@SlipDink
You can easly google the algorithm for turning ints to bits. Its a simple do-while loop, and if DinkC supports checking whether the remainder is 0 or above, than it should be possible. I never tried to make and pass an argument to some dinkc function. But that should do it. Declare an integer of 4 billion something (max value of int), and pass how many times you're gonna divide it by two. Every step gives you a bit. Id have to sit down, and check that though. I forgot the algorithm myself.