Top "Decimal" questions

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

Two decimal places using printf( )

I'm trying to write a number to two decimal places using printf() as follows: #include <cstdio> int main() { …

c++ c printf decimal
Android - Round to 2 decimal places

Possible Duplicate: Round a double to 2 significant figures after decimal point I know that there are plenty of examples on …

android double decimal rounding
Split an integer into digits to compute an ISBN checksum

I'm writing a program which calculates the check digit of an ISBN number. I have to read the user's input (…

python integer decimal
How to get numbers after decimal point?

How do I get the numbers after a decimal point? For example, if I have 5.55, how do i get .55?

python floating-point decimal
Format decimal for percentage values?

What I want is something like this: String.Format("Value: {0:%%}.", 0.8526) Where %% is that format provider or whatever I am looking …

c# decimal string.format formatprovider
Java decimal formatting using String.format?

I need to format a decimal value into a string where I always display at lease 2 decimals and at most 4. …

java formatting decimal
Decimal precision and scale in EF Code First

I'm experimenting with this code-first approach, but I'm find out now that a property of type System.Decimal gets mapped …

c# .net entity-framework ef-code-first decimal
Hexadecimal To Decimal in Shell Script

Can someone help me to convert a hexadecimal number to decimal number in a shell script? E.g., I want …

bash shell hex decimal
Python Decimals format

WHat is a good way to format a python decimal like this way? 1.00 --> '1' 1.20 --> '1.2…

python decimal
Best way to get whole number part of a Decimal number

What is the best way to return the whole number part of a decimal (in c#)? (This has to work …

c# .net decimal int