Questions tagged [currency]

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

The Currency tag is relevant to any topic that involves the handling of currency, including accurate calculation, rounding schemes, best practices and display formatting. It is also applicable to discussions of how specific languages or libraries handle currency.

http://en.wikipedia.org/wiki/Currency

2964 questions
1
vote
1 answer

Java script plugin to convert number into currency format specific to culture and unformat number with specific currency format into plain number

I want to unformat number in specific currency format to convert it in plain number. E.g.: If user enters value 11,000.50 in USD, convert it in plain number (without comma) 11000.50 If user enters value "1 450 789,32" in ZAR (south african Rand),…
Jack
  • 193
  • 1
  • 14
1
vote
3 answers

Java : How to count the number of decimals contained in a double value that represent money?

For a change-making application, made with Java, I am facing a problem while counting the number of decimals in a double value. The double value represent money, so all my operations must be made in consequences that a double value like 12.58 can be…
1
vote
3 answers

How do we customize the built in Angular "currency" filter?

I'm using Angular "currency" filter to show price in a shopping cart. The prices are fetched from a back end server. So sometimes the price may not be available to show to the user. In that case I just want to show the user that the price is not…
1
vote
0 answers

Jquery mask add comma last

I am trying to use Jquery Mask Html: Javascript/Jquery: $("#test1").mask('000.000.000.000.000.000.000', { reverse: true }); I tried…
Richard
  • 137
  • 1
  • 1
  • 12
1
vote
0 answers

Currency converter windows phone 8.1 stuck on WebRequest

I am trying to make a currency converter for WindowsPhone 8.1. But i got a problem with the WebResponse response =await request.GetResponseAsync(). I want to connect to xe([http://www.xe.com/currencyconverter/]) and get the currency from there, but…
Andrei Paul
  • 83
  • 1
  • 1
  • 9
1
vote
2 answers

Change currency depending on country

I have a package table. I want to change automatically the currency of each amount depending on the location of the user. For example, if the user is from UK, it will change to pounds, if from Australia it will be AUD. I have looked for a tutorial…
Jennifer
  • 1,291
  • 1
  • 11
  • 16
1
vote
3 answers

Formatting numbers in excel in a 3 value currency

Me and a friend are trying to make a spreadsheet in excel that can help us with displaying numbers as the currencies used in MMO games. We are trying to create this spreadsheet as a help for selling and buying items in Guild Wars 2. As currencies…
1
vote
0 answers

Php INTL format currency

This code: $formatter = new \NumberFormatter('ar', \NumberFormatter::CURRENCY); echo $formatter->formatCurrency(1234.99, 'EUR'), PHP_EOL; outputs: € ١٬٢٣٤٫٩٩ Is there any way to make formatCurrenct to output EUR ١٬٢٣٤٫٩٩ and still would be nice…
user1838937
  • 289
  • 4
  • 13
1
vote
2 answers

Displaying amount - Python

print("The cost of paint based on whole gallons is: $", round(paint_costs,2)) The cost of paint based on whole gallons is: $ XXX.XX How do I omit the space between the $ and amount so that it reads: The cost of paint based on whole gallons is:…
sithlorddahlia
  • 157
  • 1
  • 1
  • 11
1
vote
1 answer

Is Money gem usable with Mongoid?

It fits in the "schema" or document model files just fine as a type: Money However, any time I need the Money I get a string of a float in return. I understand it's dealing with MongoDB internally but I find my app littered with conversions of…
dsp_099
  • 5,801
  • 17
  • 72
  • 128
1
vote
1 answer

How do I change the currency at "paypal page" from USD to AUD?

All my buyers are using Australian currency and paypal shows USD to them when they are about to make payment, I want to change this. How do I change the currency at "paypal page" from USD to AUD?
Aditya Singh
  • 97
  • 2
  • 12
1
vote
1 answer

Zend framework currency validation

How can I validate (a form element in this case) to ensure that the value is a currency? Have looked at Zend_Validate_Float. Needs to check that value is between 0 and 2dp. Ideally locale-aware (as ZVF is) to allow for locale specific formatting…
Dan
  • 81
  • 5
1
vote
2 answers

Monetary precision in Java (not BigDecimal)

We know that using float or double is not the option where correct precision is necessary, and we know BigDecimal serves that purpose but we also know that it's about 100 times slower than regular primitive operations. Now what do we do if speed is…
vach
  • 10,571
  • 12
  • 68
  • 106
1
vote
3 answers

Printing unicode character

₹ HTML Entity (decimal) ₹ HTML Entity (hex) ₹ How to type in Microsoft Windows Alt +20B9 UTF-8 (hex) 0xE2 0x82 0xB9 (e282b9) UTF-8 (binary) 11100010:10000010:10111001 UTF-16 (hex) 0x20B9 (20b9) UTF-16 (decimal) …
eozzy
  • 66,048
  • 104
  • 272
  • 428
1
vote
2 answers

My Own Impressions on AdMob?

I successfully made an app and its waiting for review right now. But meanwhile i've been playing the game on my mom's phone because, one, i dont have an iphone and its for iphone, and two, I actually like playing it. But I looked at my admob because…
MobileGamer
  • 61
  • 1
  • 1
  • 4