BigInteger的给Hexadeximal [英] BigInteger to Hexadeximal

查看:192
本文介绍了BigInteger的给Hexadeximal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速的问题...

我有一个愚蠢长的BigInteger我想写到一个文件作为一个十六进制字符串。

I have a stupidly long BigInteger which I would like to write to a file as a hex string.

我知道Java提供了的ToString(16)方法,这样做,但我找不到在C#中的等价。

I know Java provides the .toString(16) method which does this, but I can't find an equivalent in C#.

我M使用System.Numerics.BigInteger从.NET 4.0。

I'm using System.Numerics.BigInteger from .net 4.0.

感谢

推荐答案

使用的ToString(X)的ToString(X)你喜欢。

这篇关于BigInteger的给Hexadeximal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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