Top "Double" questions

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

Is it valid to compare a double with an int in java?

Utilities.getDistance(uni, enemyuni) <= uni.getAttackRange() Utilities.getDistance returns double and getAttackRange returns int. The above code is part …

java comparison int double primitive-types
How to display double quotes in JavaScript

On html page if I give name in double quotes then it is not getting reflected on page. It displays …

javascript double quotes
Converting KB to MB, GB, TB dynamically

public String size(int size){ String hrSize = ""; int k = size; double m = size/1024; double g = size/1048576; double t = size/1073741824; DecimalFormat …

java int double division operation
The Double Byte Size in 32 bit and 64 bit OS

Is there a difference in double size when I run my app on 32 and 64 bit environment? If I am not …

c# 64-bit floating-point double ieee-754
Truncating Double with VBA in excel

I need to truncate the amount of decimal places of my double value for display in a textbox. How would …

excel double decimal-point vba
Java:Why should we use BigDecimal instead of Double in the real world?

When dealing with real world monetary values, I am advised to use BigDecimal instead of Double.But I have not …

java floating-point double bigdecimal
Convert from list to numeric

I am tying to coerce from list form to numeric form. If it is of use, the list is originally …

r list double coerce
Compare double to zero using epsilon

Today, I was looking through some C++ code (written by somebody else) and found this section: double someValue = ... if (someValue &…

c++ double
MySQL pagination without double-querying?

I was wondering if there was a way to get the number of results from a MySQL query, and at …

mysql pagination double
How to convert to double with 2 precision - string after dot?

I want to convert this string: 0.55000000000000004 to this double: 0.55. How to do that?

.net c#-4.0 double precision