## Float in Database to ? in .NET

If you have a float in MSSQLServer, to what do you map this in .NET?

Can you convert it to Double or will you lose numbers?

## 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 math class but no luck. If this can be done without converting to string or casting to …

## Checking if a double value is an integer – Swift

I need to check if a double-defined variable is convertible to Int without losing its value. This doesn’t work because they are of different types:

if self.value == Int(self.value)
where self.value …

## why is the Double.parseDouble making 9999999999999999 to 10000000000000000?

why is the Double.parseDouble making 9999999999999999 to 10000000000000000 ?
For Example :

Double d =Double.parseDouble(“9999999999999999”);
String b= new DecimalFormat(“#.##”).format(d);
System.out….

## Objective-C: Convert the entire double value to string without losing data

I have the following double value: 0.000900137869045636
which I would like to convert to a NSString.

I’ve tried the following code, but no matter what, it rounds the value to this: 0.000900138

[…

## How to find nearest next/previous double value (numeric_limits::epsilon for given number)

The title is quite self-explanatory, input is given double value, and I want to add/substract the smallest amount possible.

## Sorting a double value of an object within an arrayList

I’m trying to sort my custom class chromosome by the value of their score attribute which is a double. These chromosomes are stored within an ArrayList. I know I have to use a comparator but I’ve read …

## how do I validate user input as a double in C++?

How would I check if the input is really a double?

double x;

while (1) {
cout << '>‘;
if (cin >> x) {
// valid number
break;
} else {
// not a …

## Java double.MAX_VALUE?

Hello there I’m in my first year of Computing System Development so I am pretty new to Java and getting to grips of the basics!

For my first assignment I have to create a Gas Meter System for a Gas …

## Storing price in PHP. What is better double or string?

I’ve been making “Product Object” for my app and I’ve been setting attributes, when suddenly I got to price attribute and stumbled upon it with question what type better to choose? I understand, that …