Top "Double" questions

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

How to compare that sequence of doubles are all "approximately equal" in Java?

I have a method in java that returns a double number and I want to compare every double number that …

java double approximation
Why Does Math.pow(x,y) Count as a Double?

I'm writing a Java program to calculate how much food it will take to get a monster to a certain …

java int double pow
C# double to decimal precision loss

I have a double "138630.78380386264" and I want to convert it to a decimal, however when I do so I do …

c# double decimal precision
Multiplying variables and doubles in swift

I'm a designer looking into learning Swift and I'm a beginner. I have no experience whatsoever. I'm trying to create …

swift variables double multiplication
Ambiguous method call Both assertEquals(Object, Object) in Assert and assertEquals(double, double) in Assert match:

I am getting the following error: Both assertEquals(Object, Object) in Assert and assertEquals(double, double) in Assert match For …

java object junit double assert
Convert cell to double

>> C = [{1} {2} ; {'@CF'} {2}] C = [ 1] [2] '@CF' [2] >> whos C Name Size Bytes Class Attributes C 2x2 478 cell …

matlab double cell-array
QString::toDouble() giving me double with wrong precision

I have a QString myNumber containing "09338.712001". When I do: myNumber.toDouble();, it returns 9338.71, but I want the double to be …

qt double precision qstring
c# Convert.ToDouble format exception error

I'm trying to convert this string to double Convert.ToDouble("1.12"); and this is the output System.FormatException was unhandled. Should …

c# double formatexception
C# 6 how to format double using interpolated string?

I have used some new features of C# 6 incl. interpolated string for simple usage (showing message which contains string variables …

c# double string-interpolation c#-6.0
Using FloatMath or Math and a cast?

In the latest update of the Android API the FloatMath is marked with the following lint-warning: In older versions of …

java android floating-point double android-lint