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 do I convert a double into a string in C++?

I need to store a double as a string. I know I can use printf if I wanted to display …

c++ string double
Round double in two decimal places in C#?

I want to round up double value in two decimal places in c# how can i do that? double inputValue = 48.485; …

c# double rounding
Rounding a double value to x number of decimal places in swift

Can anyone tell me how to round a double value to x number of decimal places in Swift? I have: …

swift double nstimeinterval
Checking if a double (or float) is NaN in C++

Is there an isnan() function? PS.: I'm in MinGW (if that makes a difference). I had this solved by using …

c++ double nan
Converting string to double in C#

I have a long string with double-type values separated by # -value1#value2#value3# etc I splitted it to string table. …

c# string double type-conversion
How do I parse a string with a decimal point to a double?

I want to parse a string like "3.5" to a double. However, double.Parse("3.5") yields 35 and double.Parse("3.5", System.Globalization.NumberStyles.…

c# string parsing double
How do I print a double value without scientific notation using Java?

I want to print a double value in Java without exponential form. double dexp = 12345678; System.out.println("dexp: "+dexp); It …

java double
Float and double datatype in Java

The float data type is a single-precision 32-bit IEEE 754 floating point and the double data type is a double-precision 64-bit …

java floating-point double ieee-754
Double vs. BigDecimal?

I have to calculate some floating point variables and my colleague suggest me to use BigDecimal instead of double since …

java floating-point double bigdecimal
How to implement infinity in Java?

Does Java have anything to represent infinity for every numerical data type? How is it implemented such that I can …

java double infinity