-
Book Overview & Buying
-
Table Of Contents
.NET 4.0 Generics Beginner's Guide
By :
Scientists in number theory sometimes need to represent a floating point to some reasonably big decimal places, say to the 20,000th digit after the decimal. However, the largest available data type in .NET (decimal) supports only to the 28th digit after the decimal.
Following is what scientists want and what we can assume:
To be able to store as many digits after the decimal as possible.
To be able to know what the digit is after the decimal at any given index at constant time. This means, no matter which value they want to get at whichever index after the decimal, be it at index 0 or at index 100; it should take the same constant time. Users can't wait long.
To know which digit occurred most in the decimal places. Again they can't wait. So, the faster the better.
The floating point number will always be represented in the p/q format where p and q are integers within the System.Int32 range.
Let's see how we can help them.
Change the font size
Change margin width
Change background colour