Top "Currency" questions

Currency is a medium of exchange of value, usually referring to government issued denominations.

Converting Float to Dollars and Cents

First of all, I have tried this post (among others): Currency formatting in Python. It has no affect on my …

python python-3.x floating-point string-formatting currency
How do I format a number to a dollar amount in PHP

How do you convert a number to a string showing dollars and cents? eg: 123.45 => '$123.45' 123.456 => '$123.46' 123 =&…

php formatting currency
How do I convert from a money datatype in SQL server?

I have a money data type in SQL Server. How do I reformat 0.00 to 0 in my query?

sql-server currency
Java double comparison epsilon

I wrote a class that tests for equality, less than, and greater than with two doubles in Java. My general …

java floating-point currency
What is "The Best" U.S. Currency RegEx?

A quick search for currency regex brings up a lot of results. The problem I have in choosing one is …

regex currency
String.Format("{0:C2}", -1234) (Currency format) treats negative numbers as positive

I am using String.Format("{0:C2}", -1234) to format numbers. It always formats the amount to a positive number, while …

c# vb.net string-formatting currency string.format
How do I format a double to currency rounded to the nearest dollar?

Right now I have double numba = 5212.6312 String.Format("{0:C}", Convert.ToInt32(numba) ) This will give me $5,213.00 but I don't want …

c# formatting rounding currency
Convert any currency string to double

I need to store multiple currencies in SQL server. I understand that SQL won't support all different types of currencies (…

c# currency cultureinfo
Format a double value like currency but without the currency sign (C#)

I feed a textbox a string value showing me a balance that need to be formatted like this: ###,###,###,##0.00 I could …

c# string format currency
to_d to always return 2 decimals places in ruby

I'm dealing with currencies and I want to round down the number to 2 decimal places. Even if the number is 500.0, …

ruby-on-rails ruby math decimal currency