Top "Double" questions

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

Does C# have an Unsigned Double?

I need to use an unsigned double but it turns out C# does not provide such a type. Does anyone …

c# double unsigned
C# Converting 20 digit precision double to string and back again

In C#. I have a double (which I've extracted from a database) that has 20 digit precision. In Visual Studio (using …

c# double precision tostring
Java sum of all double does not return expected result

Possible Duplicate: Moving decimal places over in a double Why is the following sum of numbers not equal to 0.4622? but 0.46219999999999994 …

java sum double floating-accuracy decimalformat
java.lang.NumberFormatException: For input string: "1,167.40"

I'm reading data from CSV file. One of the fields contains the value 1,167.40. The code piece for reading this field …

java double number-formatting numberformatexception
Division result is always zero

I got this C code. #include <stdio.h> int main(void) { int n, d, i; double t=0, k; …

c double division multiplication integer-division
Decimal vs Double Speed

I write financial applications where I constantly battle the decision to use a double vs using a decimal. All of …

double decimal finance
Remove trailing zeros from double

I would like to remove all trailing zeros without truncating or rounding the number if it doesn't have any. For …

java double decimalformat
Double to fraction in Java

So what I'm trying to do is convert double to rational number. I check how many digits there is after …

java double fractions
What does line.split(",")[1] mean [Java]?

I came across code where i had encountered with Double.valueOf(line.split(",")[1]) I am familiar with Double.valueOf() and …

java string double value-of
Hash a double in Java

I was wondering how to hash a double in Java? I have hashed other primitive data and objects. I thought …

java object double hashcode primitive-types