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 to change symbol for decimal point in double.ToString()?

I would like to change decimal point to another character in C#. I have a double variable value double value; …

c# .net double tostring
Scala Doubles, and Precision

Is there a function that can truncate or round a Double? At one point in my code I would like …

scala double truncate rounding
How to get absolute value from double - c-language

I want the absolute-value from a negative double - and I thought the abs-function was as easy to use as …

c double
How to cast the size_t to double or int C++

My question is that I have a size_t data, but now I want to convert it to double or …

c++ casting double size-t
Double.TryParse or Convert.ToDouble - which is faster and safer?

My application reads an Excel file using VSTO and adds the read data to a StringDictionary. It adds only data …

c# .net parsing double
Round up double to 2 decimal places

How do I round up currentRatio to two decimal places? let currentRatio = Double (rxCurrentTextField.text!)! / Double (txCurrentTextField.text!)! railRatioLabelField.text! = "\(…

swift double
How to get the Power of some Integer in Swift language?

I'm learning swift recently, but I have a basic problem that can't find an answer I want to get something …

integer double swift pow
Python Replace \\ with \

So I can't seem to figure this out... I have a string say, "a\\nb" and I want this to …

python string replace double slash
Comparing double values in C#

I've a double variable called x. In the code, x gets assigned a value of 0.1 and I check it in …

c# .net double
JAVA How to remove trailing zeros from a double

For example I need 5.0 to become 5, or 4.3000 to become 4.3.

java double zero trailing