# Decimal to Binary converting function?

Page 1 of 1

## 2 Replies - 647 Views - Last Post: 30 January 2013 - 07:26 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=310242&amp;s=91795094f74ef2e722cbb884444141dd&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 illuss

• D.I.C Head

Reputation: 4
• Posts: 63
• Joined: 14-April 11

# Decimal to Binary converting function?

Posted 29 January 2013 - 10:56 PM

Hello,
I'm fairly new with C language and I was just wondering if C has a function that converts decimal to binary with user define the # of bits??

Thanks!
Is This A Good Question/Topic? 0

## Replies To: Decimal to Binary converting function?

### #2 kai_itz me

• D.I.C Head

Reputation: 28
• Posts: 159
• Joined: 03-August 12

## Re: Decimal to Binary converting function?

Posted 29 January 2013 - 11:07 PM

My link

CHECK OUT THIS ONE
Was This Post Helpful? 0

### #3 jimblumberg

Reputation: 5469
• Posts: 17,022
• Joined: 25-December 09

## Re: Decimal to Binary converting function?

Posted 30 January 2013 - 07:26 AM

Quote

I'm fairly new with C language and I was just wondering if C has a function that converts decimal to binary with user define the # of bits??

No C doesn't have a built in function to convert decimal to binary. But you can surely write one yourself.

Jim
Was This Post Helpful? 0

Page 1 of 1

 .related ul { list-style-type: circle; font-size: 12px; font-weight: bold; } .related li { margin-bottom: 5px; background-position: left 7px !important; margin-left: -35px; } .related h2 { font-size: 18px; font-weight: bold; } .related a { color: blue; }