Top "Decimal" questions

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

NSNumberFormatter with comma decimal separator

I tried to convert an NSString like "12000.54" into "12.000,54". I wrote an NSNumberFormatter instance. NSNumberFormatter *formatter = [[[NSNumberFormatter alloc] init] autorelease]; [formatter …

ios objective-c decimal separator nsnumberformatter
Django: How should I store a money value?

I'm running into a paradigm problem here. I don't know whether I should store money as a Decimal(), or if …

python django django-models decimal currency
error with decimal in mvc3 - the value is not valid for field

I'm following [Getting started with ASP.NET MVC 3][1]. And I can't add/edit with value of Price = 9.99 or 9,99. It said: "…

asp.net-mvc asp.net-mvc-3 razor decimal model-binding
Is there a Math API for Pow(decimal, decimal)

Is there a library for decimal calculation, especially the Pow(decimal, decimal) method? I can't find any. It can be …

c# .net math decimal
How to convert decimal to fractions?

What I need to convert decimal to fractions. It is easy to convert to 10's feet. 1.5 => 15/10 This can do …

java decimal fractions
Binary String to Integer with 'atoi()'

I have a string of binary that I then convert to an integer using atoi(). When I do this it …

c++ binary decimal atoi
C# double to decimal precision loss

I have a double "138630.78380386264" and I want to convert it to a decimal, however when I do so I do …

c# double decimal precision
How to use Python to convert an octal to a decimal

I had this little homework assignment and I needed to convert decimal to octal and then octal to decimal. I …

python decimal octal
Problem parsing currency text to decimal type

I am trying to parse a string like "$45.59" into a decimal. For some reason I am getting exception that the …

c# parsing decimal number-formatting
how to convert negative hexadecimal to decimal

hi I want to know how it is possible to convert a hexadecimal negative value (to complement encoding) to decimal, …

c encoding numbers decimal negative-number