Top "Decimal" questions

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

Int to Decimal Conversion - Insert decimal point at specified location

I have the following int 7122960 I need to convert it to 71229.60 Any ideas on how to convert the int into …

c# int decimal type-conversion decimal-point
Check if number is decimal

I need to check in PHP if user entered a decimal number (US way, with decimal point: X.XXX) Any …

php function decimal
Find number of decimal places in decimal value regardless of culture

I'm wondering if there is a concise and accurate way to pull out the number of decimal places in a …

c# decimal cultureinfo
Best way to display decimal without trailing zeroes

Is there a display formatter that will output decimals as these string representations in c# without doing any rounding? // decimal …

c# formatting decimal
Moving decimal places over in a double

So I have a double set to equal 1234, I want to move a decimal place over to make it 12.34 So …

java double decimal
Convert Scientific Notation to Float

Encountered a problem whereby my JSON data gets printed as a scientific notation instead of a float. import urllib2 import …

python decimal notation
Converting Decimal to Double in C#?

I have a variable which is storing as decimal: decimal firststYrComp = Int16.Parse(tb1stYr.Text.ToString()); Now I have …

c# .net double decimal
Decimal to hex conversion c++ built-in function

Is there a built-in function in c++ that would take a decimal input from a user and convert it to …

c++ hex decimal built-in
Python float to Decimal conversion

Python Decimal doesn't support being constructed from float; it expects that you have to convert float to a string first. …

python decimal
How do I format a C# decimal to remove extra following 0's?

I want to format a string as a decimal, but the decimal contains some following zeros after the decimal. How …

c# format decimal tostring