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

Android arabic Rihal textView

I have to show this symbol in a TextView on android. Symbol: ﷼ Result: I'm using other symbols of currencies in the code, but they are all displayed correctly. Somebody can give me a hint?
Marco Fedele
  • 2,090
  • 2
  • 25
  • 45
1
vote
2 answers

Magento custom currency saving?

I'm trying to get some currency exchange rates in a seperate php file in magento and saving them:
Rakward
  • 1,657
  • 2
  • 18
  • 24
1
vote
1 answer

MVC5 : How do I specify form-control to limit the number of decimal places?

I have following decimal field: [DisplayFormat(DataFormatString = "{0:n2}", ApplyFormatInEditMode = true)] public decimal MyDecimal { get; set; } In my Razor view Price @Html.EditorFor(model => model.MyDecimal, new { htmlAttributes =…
Danny
  • 746
  • 2
  • 8
  • 20
1
vote
1 answer

How to exchange correctly using the Money gem

I use the Money gem to work with different currencies. I'm seeing a strange behavior with the "JPY" currency. I have the following rates: config.add_rate('USD', 'EUR', 0.92) config.add_rate('USD', 'JPY', 123.0) Trying to exchange currencies, I get…
Artem Kalinchuk
  • 6,502
  • 7
  • 43
  • 57
1
vote
1 answer

Why are four decimal places suggested when using decimal to represent money?

When looking for the difference between SQL data types money and decimal I came across several posts that suggested that decimal(19,4) was best used to represent currency in SQL Server Why are four places to the right of the decimal needed? I would…
webworm
  • 10,587
  • 33
  • 120
  • 217
1
vote
2 answers

Convert basic script to Objective C (money formatting)

I've got this basic like script that I need to convert to objective c, it turns big units of money into shortened versions (ie: 1.2m, etc), I've got most of the conversion done, but the biggest problem I'm having is right at the end. The original…
zardon
  • 2,910
  • 6
  • 37
  • 58
1
vote
1 answer

javascript regex for whole and decimal numbers (money)

Trying to write a javascript regex for forcing users to enter decimal after a whole number, doesn't seem like many people want to do this as my searches have yielded nothing that suits my needs. Match: 2.00 20.00 200.00 1.73 0.10 No Match: .2 .20 .…
Bob
  • 165
  • 2
  • 13
1
vote
1 answer

Output as currency in C++

I have a simple C++ command line program where I am taking an input from the user then displaying it as a price, with a currency symbol, commas separating each set of 3 values, a decimal point, and two decimal places which will display even if they…
Phil Brockwell
  • 456
  • 5
  • 22
1
vote
1 answer

VAULE2 is removing leading zeros from currency

I am reading a file with currency values and creating strings of data to print into a text file. I discovered that I needed to use the VALUE2 option in order to stop the macro from rounding the values. However, I have now run into the problem that…
Jay
  • 125
  • 1
  • 13
1
vote
2 answers

Which PAYPAL service is better for online transaction for website?

I am working on a website where users will have to pay to use some services. So I know that PayPal is the service I can use. User can pay with debit card, credit card, PayPal account etc. I know that PayPal button can be used for it. But in my…
Django Learner
  • 323
  • 1
  • 4
  • 12
1
vote
0 answers

Magento: Display multiple currencies in admin and frontend without currency rates

I am trying to implement a new currency called "points" into my magento (CE 1.9.2.1) installation. I already installed this currency with my module and an installer script, marked it as allowed and I am possible to switch between "EUR" and "Points"…
chrjng
  • 71
  • 1
  • 7
1
vote
4 answers

How to validate the Currency String in java

Suppose I have a currency String in German format: String money="1.203.432,25"; I want to check if money is a valid currency value. "0,00" is valid, "134.20,24" is invalid, "02,23" is invalid and so on. How can I do it in Java?
Alexei Vinogradov
  • 1,548
  • 3
  • 15
  • 34
1
vote
0 answers

App billing android orderId and currency format error

I'm using app billing v3 and Iabhelper interface, my implementation is ok (hope that) , but lately I'm getting this 2 problems with some registers: Some orderId that I'm seding to my server are not in the normal format "orderId" :…
Jonatan
  • 413
  • 1
  • 5
  • 20
1
vote
3 answers

display both dollar sign and two decimals

i haved looked all over the place! I swear! im trying to get my output to display both the "$" and two decimals to the right of the period. Im using C# //declare variable decimal decInputDays; decimal…
ntrnlerror9
  • 11
  • 1
  • 3
1
vote
1 answer

convert decimal to a string - in thousands with rounding

I need to convert a decimal to currency string so i did this: CultureInfo usa = new CultureInfo("en-US"); NumberFormatInfo nfi = usa.NumberFormat; nfi.CurrencyDecimalDigits = 0; myValueFormated = String.Format(nfi, "{0:C}", value); It removed…
Boroda
  • 195
  • 1
  • 7
  • 23