Top "Double" questions

Double is a primitive data type used to store fractional numbers that holds a double-precision floating-point (often 64 bits).

C# Type suffix for decimal

I don't know what the correct wording is for what I am trying to achieve so it may already be …

c# types double decimal type-inference
Extract fractional part of double *efficiently* in C

I'm looking to take an IEEE double and remove any integer part of it in the most efficient manner possible. …

c floating-point double micro-optimization bit-manipulation
java.nio.BufferUnderflowException while converting byte array to double

I need to convert a bytearray to double. I am using double dvalue = ByteBuffer.wrap(value).getDouble(); But at the …

java exception double bytearray bytebuffer
What is the max. value of a double/float on iOS?

What are the values of a double/float on iOS, or the file that they're defined in? Or a macro, …

ios c objective-c double
is there anyway to convert from Double to BigInteger?

Is there anyway to convert from double value to BigInteger? double doubleValue = 64654679846513164.2; BigInteger bigInteger = (BigInteger) doubleValue; I try to cast …

java double biginteger
Saving Activity State in the onPause

I have a variable that I have successfully saved and restored using onSaveInstanceState @Override protected void onSaveInstanceState(Bundle outState) { super.…

android save double lifecycle oncreate
Unexpected result in long/int division

I have values like this: long millis = 11400000; int consta = 86400000; double res = millis/consta; The question is: why res equals 0.0 (instead …

java int double division
Java Double vs double: class type vs primitive type

I was curious to what the performance differences between Java's class and primitive type for double were. So I created …

java performance class double primitive
Random weighted selection in Java

I want to choose a random item from a set, but the chance of choosing any item should be proportional …

java random double
Unsigned Long Long from Double in Swift

I used to use the following in Objective-C: double currentTime = CFAbsoluteTimeGetCurrent(); // self.startTime is called before, like // self.startTime = CFAbsoluteTimeGetCurrent(); …

swift double unsigned-long-long-int