Top "Decimal" questions

Decimal is the name for our common base-ten numeral system.

Easy way of finding decimal places

Is there an easy way or integrated function to find out the decimal places of a floating point number? The …

python string decimal
Culture invariant Decimal.TryParse()

I'm writing a custom string to decimal validator that needs to use Decimal.TryParse that ignores culture (i.e. doesn't …

c# decimal cultureinfo tryparse
Limiting the number of decimals in a dataframe (R)

I would like to limit the number of decimals when a data frame is imported. My .txt input have 16 decimals …

r decimal maxlength limits
OverflowError: (34, 'Result too large')

I'am getting an overflow error(OverflowError: (34, 'Result too large') I want to calculate pi to 100 decimals here's my code: def …

python overflow decimal pi
PHP: get number of decimal digits

Is there a straightforward way of determining the number of decimal places in a(n) integer/double value in PHP? (…

php decimal
c# Decimal to string for currency

To display a currency we do: ToString("0.##") For value 5.00 the output is: 5 For value 5.98 the output is: 5.98 For value 5.90 the …

c# decimal currency tostring
storing negative value in mysql

How can I store negative value in mysql decimal? I have data from DMS to Decimal having negative values, so …

mysql decimal mysql5 negative-number
Javascript: How to retrieve the number of decimals of a *string* number?

I have a set of string numbers having decimals, for example: 23.456, 9.450, 123.01... I need to retrieve the number of decimals for …

javascript string numbers decimal
Java - Decimal Format.parse to return double value with specified number of decimal places

I want to be able to convert a string to a Double given a number of decimal places in a …

java parsing decimal rounding decimalformat
regular expression for finding decimal/float numbers?

i need a regular expression for decimal/float numbers like 12 12.2 1236.32 123.333 and +12.00 or -12.00 or ...123.123... for using in javascript and jQuery. …

javascript regex floating-point decimal