Top "Double" questions

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

Convert String to double in Java

How can I convert a String such as "12.34" to a double in Java?

java string casting double type-conversion
Round a double to 2 decimal places

If the value is 200.3456, it should be formatted to 200.34. If it is 200, then it should be 200.00.

java double rounding
Correct format specifier for double in printf

What is the correct format specifier for double in printf? Is it %f or is it %lf? I believe it's %…

c floating-point printf double format-specifiers
Difference between decimal, float and double in .NET?

What is the difference between decimal, float and double in .NET? When would someone use one of these?

.net floating-point double decimal
How to nicely format floating numbers to String without unnecessary decimal 0?

An 64-bit double can represent integer +/- 253 exactly Given this fact I choose to use a double type as a …

java string floating-point format double
Double decimal formatting in Java

I'm having some problems formatting the decimals of a double. If I have a double value, e.g. 4.0, how do …

java formatting double decimal
How do I convert a string to a double in Python?

I would like to know how to convert a string containing digits to a double.

python string double
decimal vs double! - Which one should I use and when?

I keep seeing people using doubles in C#. I know I read somewhere that doubles sometimes lose precision. My question …

c# double decimal precision currency
converting double to integer in java

In Java, I want to convert a double to an integer, I know if you do this: double x = 1.5; int …

java casting double rounding
C# Double - ToString() formatting with two decimal places but no rounding

How do I format a Double to a String in C# so as to have only two decimal places? If …

c# string double