Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
c# での 16 進数値の解析/変換/操作に関するヒントはありますか?
特に、10進数のintを16進数にキャストしてから、文字列として出力したい...
Int32 decValue = 42; string hexValue = decValue.ToString("X"); Int32 decValue2 = Int32.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);
この投稿を参照してください。
C#で16進数と10進数の間で数値を変換するには?