Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Denary numbers to binary for numbers below 255

Language: Layout:
- ] Show input
Compilation time: 0,2 sec, absolute running time: 0,11 sec, cpu time: 0,12 sec, average memory usage: 13 Mb, average nr of threads: 3 
fork mode |  history  | discussion
Denary to binary converter
Please enter a denary number
It will also include step-by-step instructions
Please make sure that you enter a number below 255
-------------------------
Current value is 1
Using value of 1
Count value has been incremented
Current count value is 0
Subtracting 128
Error: The value is less than zero
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 1
Subtracting 64
Current value is -63
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 2
Subtracting 32
Current value is -31
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 3
Subtracting 16
Current value is -15
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 4
Subtracting 8
Current value is -7
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 5
Subtracting 4
Current value is -3
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 6
Subtracting 2
Current value is -1
Subtracting a lower value to fix the error
Count value has been incremented
Current count value is 7
Subtracting 1
Current value is 0
Error fixed
----------------------
Number 1 is 00000001 in binary