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 get the numbers after the decimal point? (java)

double d = 4.321562; Is there an easy way to extract the 0.321562 on it's own from d? I tried looking in the …

java math numbers double decimal-point
force a string to 2 decimal places

i have a repeater item that displays a double. occasionally the double seems to be coming out with 3 decimal places …

c# asp.net double repeater
Comparator with double type

I have written the following code: public class NewClass2 implements Comparator<Point> { public int compare(Point p1, Point …

java casting double comparator
Java: double: how to ALWAYS show two decimal digits

I use double values in my project and I would like to always show the first two decimal digits, even …

java double number-formatting
convert Matrix of type CV_32FC1 to CV_64FC1

How do I convert a cv::Mat of type CV_32FC1 to the type CV_64FC1 (equivalent to a change …

opencv matrix double
Why does Math.round(0.49999999999999994) return 1?

In the following program you can see that each value slightly less than .5 is rounded down, except for 0.5. for (int …

java floating-point double rounding
Storing statistical data, do I need DECIMAL, FLOAT or DOUBLE?

I am creating for fun, but I still want to approach it seriously, a site which hosts various tests. With …

mysql floating-point double decimal
Money Format Number VB.NET

I'm trying to convert a mathematical result of money format example: Dim num1 As Integer = 2000 Dim num2 As Integer = 500 msgbox(…

vb.net double money-format
Unsigned double in C++?

Why doesn't C++ support unsigned double syntax?

c++ double unsigned
Set precision of std::to_string when converting floating point values

In C++11, std::to_string defaults to 6 decimal places when given an input value of type float or double. What …

c++ string c++11 double floating