Windows应用程序转换器 [英] windows application converter

查看:68
本文介绍了Windows应用程序转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


您好,我想将二进制转换为十进制,转换为十进制,请帮帮我,我真的很感激它对乏味的理解

电子邮件: xxxxxxxx @ gmail.com

Hi there i wanna make binary to decimal to octodecimal please help me out i would really apppreciate it regards ferdous

Email:xxxxxxxx@gmail.com

推荐答案

int转换为二进制
int to binary
int value = 8;
string binary = Convert.ToString(value, 2);



二进制到int



binary to int

String bin = "1111";
int decVal = Convert.ToInt32(str, 2);



十六进制到dec



hex to dec

int decValue = Convert.ToInt32(hexValue, 16);
string hexValue = decValue.ToString("X");




dec转换为十六进制




dec to hex

string hexVal = "fff";
int decNew = int.Parse(hexVal, System.Globalization.NumberStyles.HexNumber);




检查这些链接.

将小数转换为任何基数(二进制,八进制或十六进制) ),反之亦然(C#) [ ^ ]
在C#中将小数转换为二进制 [从十进制到二进制,八进制,十六进制转换 [ ^ ]
如何将二进制数转换为其二进制数八进制数字使用c#吗? [
Hi,

check these links.

Conversion of Decimal to any Base (Binary, Octal or Hexa) and vice-versa (C#)[^]
Decimal to binary conversion in c #[^]
decimal to binary, octal, hex conversion[^]
How can we convert binary number into its octal number using c#?[^]

Hope it helps


这篇关于Windows应用程序转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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