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 round a Double to the nearest Int in swift?

I'm trying to make a calculator of growth rate (Double) that will round the result to the nearest Integer and …

swift int double rounding
Convert double to string C++?

Possible Duplicate: How do I convert a double into a string in C++? I want to combine a string and …

c++ string double tostring
Swift double to string

Before I updated xCode 6, I had no problems casting a double to a string but now it gives me an …

swift string casting double
Why does dividing two int not yield the right value when assigned to double?

How come that in the following snippet int a = 7; int b = 3; double c = 0; c = a / b; c ends up having …

c++ variables double integer-division
DOUBLE vs DECIMAL in MySQL

OK, so I know there are tons of articles stating I shouldn't use DOUBLE to store money on a MySQL …

mysql double decimal
Limiting double to 3 decimal places

This i what I am trying to achieve: If a double has more than 3 decimal places, I want to truncate …

c# double truncate
How to manipulate arrays. Find the average. Beginner Java

I have a homework assignment and I was wondering if anyone could help me as I am new to Java …

java arrays double average
C: convert double to float, preserving decimal point precision

i wanted to convert double to float in C, but wanted to preserve the decimal point exactly as possible without …

c floating-point double c89
Converting double to string with N decimals, dot as decimal separator, and no thousand separator

I need to convert a decimal to a string with N decimals (two or four) and NO thousand separator: 'XXXXXXX (…

c# .net string double decimal
How to check if a double value has no decimal part

I have a double value which I have to display at my UI. Now the condition is that the decimal …

java double