Top "Double" questions

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

Double.Parse - Internationalization problem

This is driving me crazy. I have the following string in a ASP.NET 2.0 WebForm Page string s = "0.009"; Simple enough. …

c# string double culture cultureinfo
Comparing doubles in Java gives odd results

I really can'get my head around why the following happens: Double d = 0.0; System.out.println(d == 0); // is true System.out.…

java double equals autoboxing
C++ converting string to double using atof

I cannot get the atof() function to work. I only want the user to input values (in the form of …

c++ string double atof
objective-c stringvalue from double

I have the following code: double d1 = 12.123456789012345; NSString *test1 = [NSString stringWithFormat:@"%f", d1]; // string is: 12.123457 NSString *test1 = [NSString stringWithFormat:@"%g", …

iphone objective-c ios double stringwithformat
How to convert user input char to Double C++

I'm trying to figure out a method of taking a user input character and converting it to a double. I've …

c++ char double atof
Why does Math.ceil return a double?

When I call Math.ceil(5.2) the return is the double 6.0. My natural inclination was to think that Math.ceil(double …

java double long-integer ceil
How to truncate decimals to x places in Swift

In my swift program, I have a really long decimal number (say 17.9384693864596069567) and I want to truncate the decimal to …

ios swift double decimal calculator
toString() method within System.out.println() a double call?

A professor of mine once said that the following code should never be done: System.out.println(object.toString()); He …

java printing double call tostring
How do I use a null value in a double in VB.Net 2010?

Straightforward question: I have a few variables that are doubles. I would like to be able to store a "null" …

vb.net null double nothing
PHP static variables in double quotes

How can I get PHP to evaluate a static variable in double quotes? I want to do something like this: …

php variables static double quotes