Top "Double" questions

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

Retain precision with double in Java

public class doublePrecision { public static void main(String[] args) { double total = 0; total += 5.6; total += 5.8; System.out.println(total); } } The above code …

java floating-point double precision
Android - Round to 2 decimal places

Possible Duplicate: Round a double to 2 significant figures after decimal point I know that there are plenty of examples on …

android double decimal rounding
Dealing with float precision in Javascript

I have a large amount of numeric values y in javascript. I want to group them by rounding them down …

javascript floating-point double floating-accuracy numerical-methods
biggest integer that can be stored in a double

What is the biggest "no-floating" integer that can be stored in an IEEE 754 double type without losing precision ?

types floating-point double ieee-754
How do you test to see if a double is equal to NaN?

I have a double in Java and I want to check if it is NaN. What is the best way …

java double equality nan
How to check if a double is null?

I'm querying a database and some of the results I'm getting are null. I'm setting these values to a variable …

java database null double
Double value to round up in Java

I have a double value = 1.068879335 i want to round it up with only two decimal values like 1.07. I tried like …

java double rounding numberformatexception
How to print a double with two decimals in Android?

Maybe this is a silly question, but I cannot guess how to solve it if it's not creating a method. …

android format double show settext
Converting a double to an int in C#

In our code we have a double that we need to convert to an int. double score = 8.6; int i1 = Convert.…

c# int double
How do I get DOUBLE_MAX?

AFAIK, C supports just a few data types: int, float, double, char, void enum. I need to store a number …

c double