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

webkitfullscreenchange event for iFrame

javascript html5 fullscreen

/* works on all elements except iframes */

Default constructor for an inherited class

c++ inheritance default-constructor

I've reduced my problem down to the following example code:

TcpListener won't acknowledge connections

c# tcpclient tcplistener

So I am writing a simple client-server application. It should send a packet, then wait to receive a packet, than send one etc... The problem is, it recieves the first packet, but when I start the

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.