将二进制值转换为十进制 [英] convert binary value to decimal

查看:130
本文介绍了将二进制值转换为十进制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将二进制值转换为十进制值。

假设我想转换111可以任何人给我代码。

I want to convert binary value to decimal value.
Suppose i want to convert 111 can any one give me code for this.

推荐答案

尝试

http://kyrathaba.dcmembers.com/errata/binary_decimal.htm [ ^ ]

将十进制转换为任何基数(二进制,八进制或六进制),反之亦然(C#) [ ^ ]



但是,老实说,这似乎是作业,你应该先试一试,然后在这里提问。
Try
http://kyrathaba.dcmembers.com/errata/binary_decimal.htm[^]
Conversion of Decimal to any Base (Binary, Octal or Hexa) and vice-versa (C#)[^]

However, honestly speaking, this appears to be homework and you should give it a try before asking questions here.


你好,

试试这个链接:



http://www.codeproject.com/Messages/4046276/Re-csharp-binary-to-decimal-code-new.aspx [ ^ ]



导致我对此问题的建议页面,

,你还可以看到许多其他解决方案,

甚至更好,指的是程序代码。
Hello,
try this link :

http://www.codeproject.com/Messages/4046276/Re-csharp-binary-to-decimal-code-new.aspx[^]

Leads to a page of my suggestion for this problem,
and you can also see many other solutions,
even better, refers to the program code.


这是我很久以前发布的一篇文章可能有所帮助:二进制,八进制和十六进制32位结构 [ ^ ]
This is an article I posted a long time ago that may help: Binary, octal, and hexadecimal 32 bit structs[^]


这篇关于将二进制值转换为十进制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆