.NET ez 2011-11-30
使用C#進行n進為轉換
using System; namespace Test { class Program { static void Main(string[] args) { Console.WriteLine(System.Convert.ToString(10, 2)); //十進位轉換二進位 Console.WriteLine(System.Convert.ToString(10, 8)); //十進位轉換八進位 Console.WriteLine(System.Convert.ToString(10, 16)); //十進位轉換十六進位 } } }
標籤: .NET
本文章網址:
https://www.ez2o.com/Blog/Post/csharp-Binary-Octal-Decimal-Hexadecimal-Converter
https://www.ez2o.com/Blog/Post/50
https://www.ez2o.com/Blog/Post/csharp-Binary-Octal-Decimal-Hexadecimal-Converter
https://www.ez2o.com/Blog/Post/50