Top "Decimal" questions

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

How to round a number to n decimal places in Java

What I would like is a method to convert a double to a string which rounds using the half-up method …

java decimal rounding digits
How do I display a decimal value to 2 decimal places?

When displaying the value of a decimal currently with .ToString(), it's accurate to like 15 decimal places, and since I'm using …

c# .net format decimal
Difference between decimal, float and double in .NET?

What is the difference between decimal, float and double in .NET? When would someone use one of these?

.net floating-point double decimal
Write a number with two decimal places SQL server

How do you write a number with two decimal places for sql server?

sql sql-server decimal number-formatting
How do I restrict a float value to only two places after the decimal point in C?

How can I round a float value (such as 37.777779) to two decimal places (37.78) in C?

c floating-point decimal
How to store decimal values in SQL Server?

I'm trying to figure out decimal data type of a column in the SQL Server. I need to be able …

sql sql-server types decimal
Double decimal formatting in Java

I'm having some problems formatting the decimals of a double. If I have a double value, e.g. 4.0, how do …

java formatting double decimal
Convert decimal to binary in python

Is there any module or function in python I can use to convert a decimal number to its binary equivalent? …

python binary decimal
decimal vs double! - Which one should I use and when?

I keep seeing people using doubles in C#. I know I read somewhere that doubles sometimes lose precision. My question …

c# double decimal precision currency