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

How to make my cheque generator output exactly what it is instead of "Zero" in C

My Cheque generator program has worked flawlessly for any input you give it to make it output the numerals in words. for example if I were to input "1234.56" it will out put "One Thousand Two Hundred Thirty Four Dollars and ... 56 Cents". However…
Derrick Rose
  • 664
  • 2
  • 9
  • 21
1
vote
2 answers

Validating currency allows more than two decimal places

Situation: I'm writing a Winforms app using C# in VS2013 with .NET4.0. Some cells in a datagridview need to be validated as correctly formatted UK currency values. The dgv cell format is set to currency with two decimal places. For validation I'm…
ifinlay
  • 621
  • 1
  • 7
  • 24
1
vote
1 answer

"Validation error: PayPal currencies do not match" in WooCommerce

Using WooCommerce and the standard PayPal gateway to accept payments. When testing in Sandbox mode, everything works great. When we test live with a real transaction, payment goes through no problem, but within WooCommerce there is a note as…
Sam
  • 21
  • 3
1
vote
2 answers

Converting hash ruby objects to positive currency

I have a hash where the keys are the months and I want to convert the objects to positive numbers AND currency. INPUT hash = { 12 => -5888.969999999999, 4 => -6346.1, 3 => -6081.76, 2 => -5774.799999999999, 1 => -4454.38 } OUTPUT hash =…
SupremeA
  • 1,519
  • 3
  • 26
  • 43
1
vote
1 answer

How can I save values from a textbox (input == text) as Currency values in Sharepoint?

I have Sharepoint list values that are Currency, such as: list.Fields.Add("Airfare", SPFieldType.Currency, false); But how do I save these values into the list as the Currency type? I tried this: spli["Airfare"] = (SPFieldType.Currency)…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1
vote
0 answers

How can I fill a PHP dropdownbox with all the elements of a (part of) WSDL data?

When you download SoapUI there is a nice example for a WSDL on currency.... this one: http://www.webservicex.com/currencyconvertor.asmx?WSDL
tijnn
  • 406
  • 1
  • 8
  • 24
1
vote
1 answer

Port Admob to mobile web

I am in the depths of creating a mobile web game that I will soon release. I am interested in monetizing this app. I want the game to feel like its a regular app and therefore wish to have admob ads (with deep links to the app store). I have heard…
Aidan Collins
  • 215
  • 2
  • 3
  • 8
1
vote
2 answers

Problems rounding large figures using ng-currency

I'm using the ng-currency library - http://aguirrel.github.io/ng-currency/ - to display currency values in a project. However, it's not exactly what I need, the currency value cannot be negative cannot be greater than 999,999,999 must be rounded to…
Joseph McCarthy
  • 897
  • 2
  • 19
  • 41
1
vote
2 answers

Validate if a String is in currency format

I am trying to create a method in swift that takes in a String and returns a Bool. I want to return true if the String is in a correct currency format and false if it is not. So far this is the method I have tried: func…
Reid
  • 734
  • 8
  • 15
1
vote
2 answers

Input with 2 decimals, assume first 2 numbers are a decimal

What would be the best way to do the following in Javascript / AngularJS? I have an input box and a soft numeric 10 key (buttons). Instead of having the user enter "." on the keyboard or press the "." on the soft pad, the input should assume a…
Robert Baker
  • 25,593
  • 1
  • 20
  • 21
1
vote
2 answers

Azure, shut down all vm's when out of money

I need to stop all my vm's in azure portal when my balance is 0$ How can i do it? maybe some script?
Andrey Bu
  • 11
  • 2
1
vote
0 answers

Exchange Rate Converter - Android/Web API

In my opinion, the question below contains the most comprehensive answers in terms of figuring out where to get live exchange rate data: How do I get currency exchange rates via an API such as Google Finance? Unfortunately, this question was asked a…
Charlie Olson
  • 231
  • 2
  • 6
1
vote
1 answer

PHP money_format not displaying currency symbol

I'm trying to use money_format() to obviously add separators and a currency symbol to a number I have. I've seen plenty of examples where they work, but for some reason the currency symbol does not display. $_price = '10995'; …
Jonathan Garrett
  • 115
  • 1
  • 1
  • 10
1
vote
2 answers

How to get info from YQL currency?

I tried alot of scripts from internet, but anyone works for me, so mabie you can help me, I don't know how to create PHP code to get rates of EUR to DKK. I need code something like this: $dkk_rate = ??? $euros = 100; $krones = $euros * $dkk_rate;
Stuneris
  • 77
  • 2
  • 12
1
vote
0 answers

need to select currency data from CSV

have a working select statement fro a CSV file but one columns (col3 specifically) is a dollar amount that is returning only an integer...dropping the positions to right of decimal. Anyone have an idea what is happening?