How can i get 64 bits of the fractional part of the square root of a number in java?

How can i get 64 bits of the fractional part of the square root of a number in java?

Answers


You will have to find a library that calculates the value to 64 fractional bits, or study the algorithms and write it yourself. A double does not store 64 fractional bits; it stores 64 total bits. Only 53 of those are used to represent the fraction ("mantissa", technically speaking; a number like 1.xxxxxxx in binary, except the 1 is always 1, so there is no need to record it), 12 are used for an exponent (so that the double can represent very large numbers as well as numbers that are very close to zero), and 1 is used for a sign (so that it can represent negative numbers).


Need Your Help

c++ class with objective-c friend

c++ objective-c

I have an application thats a mix of c++ and objective-c.

Why does STL set have count() when all elements are supposed to be unique?

c++ stl set

I can understand that multiset has count(), for counting the number of occurrences of a value, because elements can be repeated in multiset.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.