Top "Decimal" questions

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

Formatting a float to 2 decimal places

I am currently building a sales module for a clients website. So far I have got the sale price to …

c# variables floating-point decimal
Format number to 2 decimal places

I would like to know how can I output a number with 2 decimal places, without rounding the original number. For …

mysql formatting decimal
How to convert numbers between hexadecimal and decimal

How do you convert between hexadecimal numbers and decimal numbers in C#?

c# hex type-conversion decimal
C++ - Decimal to binary converting

I wrote a 'simple' (it took me 30 minutes) program that converts decimal number to binary. I am SURE that there's …

c++ binary decimal
How do I convert hex to decimal in Python?

I have some Perl code where the hex() function converts hex data to decimal. How can I do it on …

python hex decimal
Convert string to decimal, keeping fractions

I am trying to convert 1200.00 to decimal, but Decimal.Parse() removes .00. I've tried some different methods, but it always removes .00, …

c# string decimal
Integer to hex string in C++

How do I convert an integer to a hex string in C++? I can find some ways to do it, …

c++ decimal hex int
Java String remove all non numeric characters

Trying to remove all letters and characters that are not 0-9 and a period. I'm using Character.isDigit() but it …

java string character decimal
convert a JavaScript string variable to decimal/money

How can we convert a JavaScript string variable to decimal? Is there a function such as: parseInt(document.getElementById(amtid4).…

javascript decimal string-conversion