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
2 answers

Script isn't writing anything after $ to text file

In a bash script I have it is supposed to write certain lines to a file. This is what it supposed to write: echo "export ROS_PACKAGE_PATH=/home/forklift/forklift-workspace:$ROS_PACKAGE_PATH" >> ~/.bashrc and this is what it writes in the…
user244985
  • 121
  • 3
  • 10
1
vote
3 answers

Currency Converter Using PHP

I am new to PHP so i am not sure what i am doing wrong but it seems only last if statement is getting executed which is USD to USD no matter what currencies i pick. I need to make it so it converts FROM and TO currency that i pick and the…
user3365751
  • 15
  • 1
  • 1
  • 3
1
vote
2 answers

User input money value in grails

I need to get a money value from the user, but the user can type the number in different formats: 1.234.234,78 1234566,26 123,123,132.12 I don't know how to treat the variable. I have to transform that value in Double type but if the user give me…
Simo
  • 698
  • 1
  • 5
  • 18
1
vote
1 answer

How to change the currency symbol position in wordpress?

I am working on a free wordpress classifieds theme and found more currency symbol idea, but I wish you the price would be after the symbol. eg. 200 $ Here the code:
ID, 'price', true) !==…
Jaytie
  • 13
  • 4
1
vote
1 answer

Javascript regex replace all non currency characters

I need to replace all non numeric characters in a textare using javascript. Our client wants to remove and non digits e.g 1,330.00 becomes 1330.00. I can replace all non digits except for the decimal place, but this allows multiple decimal places. I…
Wardy277
  • 33
  • 6
1
vote
0 answers

Unexpected result using money_format

I'm trying to assign the output of a custom wordpress field to $number and then use $number inside money_format. My expected output is £ value_in_number, but I'm actually getting value_in_number £. Here is my code:
bills
  • 11
  • 1
1
vote
3 answers

Convert Double to Currency after calculations

I have all but finished this code but I am not sure it will work yet. But the last thing I need before i try to execute the program to work is to convert a double I created to calculate discounts to currency to output to a label. Here is my code.. …
1
vote
1 answer

TEST fine LIVE Form transaction error status Malformed 3045 currency field is missing

I am integrating Sagepay form on a website. I have succssfully completed transactions in test mode but when I make it live I get the following error Form transaction error status Malformed 3045 currency field is missing
Bolor Parry
  • 47
  • 1
  • 4
1
vote
1 answer

Weird behaviour from Magento currency selector

We're having an unusual issue with Magento on our live site which we're unable to replicate with our local one. When you select the currency you want to use, you're redirected to a random page on the site, and although it appears the currency is set…
Daniel Hollands
  • 6,281
  • 4
  • 24
  • 42
1
vote
3 answers

convert currency according to daily rates magento

Hi i have multisite in magento. In this i want the price of the product should be adjusted according to daily dollar rate . Like if today the price of 1 dollar is rs 20 and my product price for Indian store view is equal to 1 $ but it will…
Rohit Goel
  • 3,396
  • 8
  • 56
  • 107
1
vote
2 answers

How to round a sum for the swiss currency (francs)

here in switzerland our currency is francs and the smallest coin is 5 centimes which is 0.05 francs. what is the best way to round amounts to be payable with our money using the programming language ABAP in a SAP R/3 system? examples: " 4.48…
user235064
1
vote
1 answer

Zend2: Specify currency prefix?

In Zend2 you can do this: currencyFormat(120, 'ZAR'); ?> This will result in: ZAR 120.00 However, I want to end up with: R 120.00 How can I set the prefix to rather be the currency symbol, as apposed to the code? The following…
rockstardev
  • 13,479
  • 39
  • 164
  • 296
1
vote
3 answers

Javascript: Simple currency converter with previous conversions

what i aim to do is a very simple currency converter. Basically, you type in a number, and press a button, a text is displayed that says "x dollars is y euros". Press the button again, a new text is displayed where the old one was, and the old one…
Andrew P
  • 1,487
  • 5
  • 17
  • 18
1
vote
0 answers

How to implement a currency converter as a block in a Drupal site?

I want to add a block in my Drupal site that contains a currency converter, similar to the converter at http://finance.yahoo.com/currency-converter/ Any idea please ?
1
vote
1 answer

Regex expression works well when testing but not in my page

This Regex below works well for all currencies when testing on a Regex test page. Although when in my page, it just works for the $ currency. I changed the MetaTag for different caracter sets, no luck. What could be wrong? if…
Sergelie
  • 363
  • 1
  • 14
1 2 3
99
100