Top "Double" questions

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

In Dart is there a quick way to convert int to double?

Very simple issue. I have a useless class: class Useless{ double field; Useless(this.field); } I then commit the mortal …

flutter dart integer double converters
What do F and D mean at the end of numeric literals?

I've seen some of this symbols, but I cannot find anything strange with it, double d = 5D; float f = 3.0F; …

java floating-point double
double or float, which is faster?

I am reading "accelerated C++". I found one sentence which states "sometimes double is faster in execution than float in …

c++ floating-point double
Round to nearest five

I need to round a double to nearest five. I can't find a way to do it with the Math.…

c# double rounding
How to find max value for Double and Float in Swift

Current learning Swift, there are ways to find max and min value for different kind of Integer like Int.max …

swift floating-point int double infinity
How do you set a double value to a "non-value"

I have two double data elements in an object. Sometimes they are set with a proper value and sometimes not. …

java double undefined
Java: Use DecimalFormat to format doubles and integers but keep integers without a decimal separator

I'm trying to format some numbers in a Java program. The numbers will be both doubles and integers. When handling …

java integer double decimalformat
Cannot implicitly convert type 'double' to 'long'

In this code i got the above error in lines i commented. public double bigzarb(long u, long v) { double …

c# double long-integer
Modeling infinity for the largest double value

The question is about modeling infinity in C++ for the double data type. I need it in a header file, …

c++ double infinity