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 add coins from different currencies

We are teaching a class where we need to teach about currency. We would like our students to add and demonstrate using different currencies across the world. (e.g. Country=US, How much does 3 nickels + 2 pennies + 3 dimes) (e.g. Country=UK,…
Jason
  • 12,229
  • 20
  • 51
  • 66
1
vote
2 answers

How to handle precision and rounding errors in currency?

Things I know from other SO questions: I must use either ints or Java's BigDecimal (Java is my case, though the question is broader), not floating point types. I must store at a minimum one more decimal place than what I want to show. In my case I…
Blueriver
  • 3,212
  • 3
  • 16
  • 33
1
vote
1 answer

noUiSlider prefix is not updating correctly

So I am using a noUiSlider for price selection. The handle values have a currency prefix, so I need to update it if a customer changes currency, naturally. Here's my code: priceSlider.noUiSlider.updateOptions({ range: { min: minPrice, max:…
j_d
  • 2,818
  • 9
  • 50
  • 91
1
vote
3 answers

Rupee symbol not working

We have a content management system from which we fetch the rupee symbol (₹) set in settings to show product price in Indian Rupees. We are not able to use HTML code for rupee (₹) where this setting is done. On some machines it renders correctly,…
Ema
  • 29
  • 1
  • 6
1
vote
6 answers

Trim symbol and decimal value from currency string

I have currency input strings like these. $50 ...I only need 50 $60.59 ...I only need 60, need to remove $ and .59 €360 ...I only need 360 €36.99 ...I only need 36, need to remove € and .99 £900 ...I only need 900 £90.99 ...I only need 90 In other…
Mr Shabir
  • 173
  • 3
  • 16
1
vote
1 answer

How to display indian and euro locale number value in words?

I am struggling to show the Indian and Euro Locale value in words. Please anyone help on this. var outputString = "" let valueString = "9,58,888.875" let valueFormatter = NSNumberFormatter() let outputFormatter =…
Mukesh N
  • 71
  • 1
  • 8
1
vote
1 answer

Delphi validate two decimal places 0.005 equals 0

I have a textedit component and a button component. The button component will add the textedit component text value to a list if that value is greater than 0. On the textedit component I can as many decimal places as I want, but I'd like to validate…
1
vote
1 answer

Can PayPal transfer money between users?

I am building an app in which user A pays user B for a service while also paying Company C an intermediate fee. Does PayPal offer this feature?
1
vote
2 answers

How do I take the text from a TextView and format it for USD Currency?

This is what I am doing --> //get entered texts from the edittexts,and convert to integers. Integer value1 = Integer.parseInt(sand1.getText().toString()); //doing a calculation Double calculatedValue1 = (9.5*value1); //set the value to the…
Casey
  • 21
  • 1
  • 6
1
vote
0 answers

convert indian currency to words in php

I'm trying to convert currency to word, I can able to convert successfully using the code below but, Currency Major is showing like one hundred thousand for 1 Lacks(100,000), How can i change it to show 1 Lack (1,00,000) instead of one hundred…
Sha
  • 506
  • 2
  • 6
  • 22
1
vote
0 answers

Google Analytics Custom JavaScript to import the exchange rate does not work

I used a custom JavaScript to import currency conversion rate from yahoo to my google analytics because GA does not have Macau pataca as a currency, so transaction revenue zero in reports. here is the code I used, function getRate(from, to) { var…
cool_kid
  • 337
  • 1
  • 3
  • 13
1
vote
1 answer

Currency and Exchange Name from Yahoo

I'm quite new to pandas (and coding in general), but am really enjoying messing around with pulling stock data from Yahoo Finance. I was just wondering if there's a way to also pull the name of the exchange that the stock is listed on (i.e. LSE,…
Andy
  • 27
  • 1
  • 1
  • 5
1
vote
2 answers

javafx: bind label text property with TextField's + FORMAT result

I have a TextField, where user input salary. The TF have a TextFormatter based on Default Locale. next to The TextField there is a Label, In this Label I want to Show the TextField Text Formatted as Currency, For all of This I use this…
usertest
  • 2,140
  • 4
  • 32
  • 51
1
vote
2 answers

Change the data type of a table in SQL Server via Visual Studio (C#)

Change the data type of a table in SQL Server via Visual Studio (C#) Context I have a web scraper that I use to pull data from various websites each morning (via automated tasks). Each scraper project then creates a separate SQL Server table and…
bighapa67
  • 11
  • 2
1
vote
1 answer

modified money in CRUD is rising C#

I have a Window Application in ado.net with adding, modifying and deleting rows for a few tables. My problem is that after modifying a table with money type, the money value is much bigger after the operation. String sql = "UPDATE kierowca SET…
xxyoyoxx
  • 19
  • 3