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 cast from List<Double> to double[] in Java?

I have a variable like that: List<Double> frameList = new ArrayList<Double>(); /* Double elements has added …

java list casting double
How can I convert a byte array into a double and back?

For converting a byte array to a double I found this: //convert 8 byte array to double int start=0;//??? int i = 0; …

java double bytearray
converting string to a double variable in C

I have written the following code. It should convert a string like "88" to double value 88 and print it void convertType(…

c string double atof
Moving decimal places over in a double

So I have a double set to equal 1234, I want to move a decimal place over to make it 12.34 So …

java double decimal
Force point (".") as decimal separator in java

I currently use the following code to print a double: return String.format("%.2f", someDouble); This works well, except that …

java formatting double
Parsing string to double - java

For a project I have a program that is like a bank. The "bank" reads in a file with accounts …

java string parsing double bank
Java double initialization

In what way are these statements different? double dummy = 0; double dummy = 0.0; double dummy = 0.0d; double dummy = 0.0D;

java double declaration
How to 'cout' the correct number of decimal places of a double value?

I need help on keeping the precision of a double. If I assign a literal to a double, the actual …

c++ double tostring precision
Converting Decimal to Double in C#?

I have a variable which is storing as decimal: decimal firststYrComp = Int16.Parse(tb1stYr.Text.ToString()); Now I have …

c# .net double decimal
How to make C++ cout not use scientific notation

double x = 1500; for(int k = 0; k<10 ; k++){ double t = 0; for(int i=0; i<12; i++){ t += x * 0.0675; x += x * 0.0675; } …

c++ double cout ostream scientific-notation