Post History
Challenge What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an int then turn it into it's binary value...
#3: Post edited
> Looks like this challenge has been well-received. The challenge will remain on this place. This quote block will be removed after some time, just left out as a notice.- # Challenge
- What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an `int` then turn it into it's binary value.
- - Take input of a non-negative decimal integer and output its binary value/form.
- - Any preceding zeros don't need to be outputted.
- - This is <a class="badge is-tag">code-golf</a>, so the shortest program wins. Yep, not by language.
- # Test Cases
- ```none
- n = 0
- Output: 0
- n = 1
- Output: 1
- n = 5
- Output: 101
- n = 12
- Output: 1100
- n = 31
- Output: 11111
- n = 4096
- Output: 1000000000000
- ```
- # Challenge
- What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an `int` then turn it into it's binary value.
- - Take input of a non-negative decimal integer and output its binary value/form.
- - Any preceding zeros don't need to be outputted.
- - This is <a class="badge is-tag">code-golf</a>, so the shortest program wins. Yep, not by language.
- # Test Cases
- ```none
- n = 0
- Output: 0
- n = 1
- Output: 1
- n = 5
- Output: 101
- n = 12
- Output: 1100
- n = 31
- Output: 11111
- n = 4096
- Output: 1000000000000
- ```
#2: Post edited
> This challenge is currently in the beta. If given enough positivity, this challenge will remain here. If not, feel free to make changes and clear out misinformation in the [sandboxed post](https://codegolf.codidact.com/posts/283649/).- # Challenge
- What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an `int` then turn it into it's binary value.
- - Take input of a non-negative decimal integer and output its binary value/form.
- - Any preceding zeros don't need to be outputted.
- - This is <a class="badge is-tag">code-golf</a>, so the shortest program wins. Yep, not by language.
- # Test Cases
- ```none
- n = 0
- Output: 0
- n = 1
- Output: 1
- n = 5
- Output: 101
- n = 12
- Output: 1100
- n = 31
- Output: 11111
- n = 4096
- Output: 1000000000000
- ```
- > Looks like this challenge has been well-received. The challenge will remain on this place. This quote block will be removed after some time, just left out as a notice.
- # Challenge
- What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an `int` then turn it into it's binary value.
- - Take input of a non-negative decimal integer and output its binary value/form.
- - Any preceding zeros don't need to be outputted.
- - This is <a class="badge is-tag">code-golf</a>, so the shortest program wins. Yep, not by language.
- # Test Cases
- ```none
- n = 0
- Output: 0
- n = 1
- Output: 1
- n = 5
- Output: 101
- n = 12
- Output: 1100
- n = 31
- Output: 11111
- n = 4096
- Output: 1000000000000
- ```
#1: Initial revision
Make my value binary
> This challenge is currently in the beta. If given enough positivity, this challenge will remain here. If not, feel free to make changes and clear out misinformation in the [sandboxed post](https://codegolf.codidact.com/posts/283649/). # Challenge What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an `int` then turn it into it's binary value. - Take input of a non-negative decimal integer and output its binary value/form. - Any preceding zeros don't need to be outputted. - This is <a class="badge is-tag">code-golf</a>, so the shortest program wins. Yep, not by language. # Test Cases ```none n = 0 Output: 0 n = 1 Output: 1 n = 5 Output: 101 n = 12 Output: 1100 n = 31 Output: 11111 n = 4096 Output: 1000000000000 ```