C# .NET
ToString()
hexadecimal conversion for a
ulong
type only delivers the low 16 hex digits of any numeric value. So if you're trying to break the 64-bit barrier for
string
conversions to base 16 or base 10, you can use the values from the table (for powers of ten less than 10
1228) at this link as benchmarks or in constructing a table-driven binary-to-decimal string converter:
http://cqvis.yolasite.com/resources/EXPTEN.TXT[
^]
It's a rather large file, so be prepared for a download delay if you're outside the U.S.
May 21, 2011
The aforementioned file has been replaced by one with a fixed record format (still a
.txt file, though).
A C# struct layout for the file is found here:
http://cqvis.yolasite.com/resources/EXPTEN-S.CS[
^]
If you don't modify the file, you can read it as straight binary in this format.
Here's a quicker download (281K for the
.zip file as apposed to 1.2M for the uncompressed
.txt file):
http://cqvis.yolasite.com/resources/EXPTEN.zip[
^]