Questions tagged [currency]
Currency is a medium of exchange of value, usually referring to government issued denominations.
2,879
questions
-5
votes
0
answers
44
views
how to define number of decimals in a long? [closed]
I'm looking for a way to determine the number of decimal places per parameter, for a long... a function like this:
private Double setDecimals(long number, long decimals){
here it must return the ...
0
votes
0
answers
7
views
How to animate background for every socket response in react native
I'm trying to create a dynamic background color that indicates whether the price has gone up from the previous price or not.
If the price>previousPrice then the background color should be green and ...
0
votes
0
answers
27
views
How to convert from 2020 constant USD to 2011 constant USD
I have a data column with USD entries that are in constant 2020 values. I need to convert from constant 2020 values to constant 2011 values.
I am able to properly convert from current (nominal) values ...
0
votes
0
answers
17
views
Jest: Function to format currency values [duplicate]
I'm having the following error when testing a function to format currency values
Function:
const brlCurrencyFormatting = (value) => {
const options = {style: 'currency', currency: 'BRL'};
...
0
votes
2
answers
34
views
Changing currency in excel using a dropdown via VBA
I have some Excel VBA code which I can use a dropdown (F1) to change currency. It changes only one specified cell (H1). I would like the code to change the currency for the whole workbook. I do not ...
1
vote
0
answers
18
views
Mismatched value (page crawl) [price]
I've seen all my catalog of products on Google Merchant Center being suddenly disapproved while it has been running fine for years.
The error displayed is "Mismatched value (page crawl) [price]&...
0
votes
0
answers
20
views
How to update states for every microsecond in react-native
I'm using currency.com's API to fetch market data and display it on my react-native app. Since the socket response from currency.com is real-time and changes very fast and frequently the setState() ...
1
vote
1
answer
65
views
Failed to instantiate component or class "yii\bootstrap\BootstrapAsset"
I'm trying to make a form in yii2 accept big numbers like currency . I want the number to be seperated for example 10000000 seems like that 10.000.000 . I search and find that there is something ...
-1
votes
0
answers
8
views
Can someone explain the business side of app development?
I've been thinking of selling app development services. I'm trying to understand the business side of it and was hoping someone with experience could chime in.
If I create an app that uses paid cloud ...
-2
votes
0
answers
16
views
How to make woocommerce multicurrecny
i installed the woocommerce multicurrency plugin and set the settings to auto locate which means it will automatically locate the client and give him the right currency but it is not changing the ...
0
votes
0
answers
14
views
Netsuite - currency FX rate - api export data
I would like to export on a daily basis, currency (currencies object) FX rate. is it optional by OOTB API request?
In case not, can i create BI report in Netsuite and use it as API request to pull out ...
0
votes
0
answers
30
views
Display a custom field (field type: number) as currency with commas
I have a custom field for capturing and displaying the price of items that I am using in several different places on my site (not a shopping site, prices are just displayed as simple text, the field ...
0
votes
1
answer
41
views
my currency converter question is i a need function to convert rand(ZAR) to pound, dollar, and euro
I need to put in a certain amount of rands and get back euro, pound, and dollar.
The rest of my code does have the link to the javascript file. I've only put the dollar() function in for now because I ...
0
votes
1
answer
31
views
How to use NumberFormat in Java for custom currency formatting?
I have this:
class Main {
public static void main(String[] args) {
String in = "2300.99 EUR";
String out = formatCurrency(in);
System.out.println(out);
}
...
0
votes
2
answers
98
views
Use Android ICU NumberFormat with only the JVM
Android has the ICU library NumberFormat which allows formatting currencies in different ways, in my specific case I need it as ISOCURRENCYSTYLE. This works great but only works on Android.
Java as ...
0
votes
1
answer
27
views
Android EditText currency for Malaysia
Locale currency = new Locale("ms-my");
//Locale of Malaysia
if (!editable.toString().equals(current)) {
TransferAmount....
0
votes
1
answer
17
views
Currency Convert to Word in PHP INR way
I am fatriedg an issue while converting the currency in the INR case.
I want to make a function where if the amount does not have 'paisa' then in the last of the word will shows the 'only' word.
e.g 1:...
0
votes
1
answer
34
views
How to allow negative value also for 2 decimal limit using angular13
DEMO
Hi i am using angular13, and here i want to restrict the input field with 2 digit decimal. This is working fine, but this input must allow negative values as well, i have tried with multiple ...
0
votes
0
answers
15
views
simple currency converter script using php
I want to convert from dollars to Colombian pesos in PHP and that this is saved in a variable to use it in the paypal api, i have investigated and tested and I used this page https://free....
1
vote
1
answer
54
views
How to solve misconversion when formatting fantasy currency in Microsoft Excel?
I am trying to set up Excel for my D&D Fantasy Currency.
I want to use Excel to convert integers and decimals to gold (gp), silver (sp), and copper (cp) pieces; e.g. 25.47 = 25gp 4sp 7cp.
The ...
0
votes
1
answer
41
views
Correct way to do Ledger system in MongoDB
So we are trying to work out in what format do we store money values in MongoDB we are talking dealing with cents.
For example if someone gets charged 0.04 but we take 30% commission we should get 0....
0
votes
1
answer
39
views
Javascript How To Format An Integer As A Currency String?
I have an integer stored as US cents, ie 1700 cents. How can I convert that to a string that is $17.00 using javascript? I have tried toFixed and Intl.NumberFormat but they return $1700?
0
votes
0
answers
5
views
How to input on the keyboard currency numbers such as: 289.54 in visual basic. What function do I use?
I have written a budget program years ago, and have recently discovered that
the fractional parts of the input are being rounded. For example an input of
289.54 will end up as 290.00 because I have ...
0
votes
1
answer
16
views
Currency convert based on geolocation
I am working on wordpress elementor. I tried some plugins for currency conversion but didn't worked out. As my pricing is mentioned in the text box, i didn't rectify the problem that how can i ...
1
vote
0
answers
22
views
How to add notranslate for currency symbols - woocommerce
Does anyone know how to stop Google translate from translating just the currency symbol?
I have installed GTranslate to translate woocommerce site. It translates well - however it also translates the ...
0
votes
0
answers
22
views
How to divide a groupby Object by pandas Series efficiently? Or how to convert yfinance multiple ticker data to another currency?
I am pulling historical price data for the S&P500 index components with yfinance and would now like to convert the Close & Volume from USD into EUR.
This is what I tried:
data = yf.download(...
0
votes
0
answers
15
views
How to get the minimum value for a currency exchange in a day and its time
so, my problem is the next one:
I need to know the minimum value for currency exchange in a day and its time.
I've found several recommended exchange APIs for currency exchange and conversion rates (...
1
vote
0
answers
14
views
How to track currency conversion that are too small
Here's my problem. I need to convert IDR to SGD and subtract that value from the balance. My problem is 1 IDR = 0.0000952286 SGD and the current precision I set on my database for the balance is 2 ...
0
votes
0
answers
6
views
Currency Convertor in Python: Code stopping midway [duplicate]
I need some help with this issue. I am coding a currency converter in python. However, it stops running midway. Could someone please help me debug? Thank you in advance for your time and effort. Below ...
0
votes
0
answers
26
views
Calculation groups for currency conversion (multiple currencies to multiple currencies)
I have tried to make a calculation group that does my currency conversion for me for all my measures that has a "LC" in its naming. It goes well in most cases BUT when I have a measure with &...
0
votes
0
answers
13
views
Java - Netbeans, I want to calculate using options in a combo box and display in a text box using a button , the text box should change with each opt
So, basically having 5 options in a combo box that has 5 different values that will calculate with each option selected with its independent values. for example, I have a calculator that will convert ...
0
votes
0
answers
23
views
How to format currency inside a xs:decimal format in xsd
Taking an XML class and I'm struggling to format the currency code and the phone numbers in the way the book wants. When I try to validate to make sure it works, it either comes up as invalid or doesn'...
0
votes
0
answers
38
views
Elasticsearch price range filter with currency convert (by selected currency)
The flow of my project :
One user register and enter new entity with the price: 100 | currency: EUR
Another user registered and creates a new entity with price: 252 | currency: USD
Third user ...
0
votes
1
answer
67
views
Android array-list currency list of countries
I want to get the currency list of all the countries but could not find anywhere in the xml format. Does anybody knows from where can I get it?
1
vote
1
answer
47
views
Changing Number to Text
I currently using this code in Google Sheet to replace my numbers(Currency) to text. But its showing error for this part
IF(IFERROR(QUERY({Y:Y},"where Col1 Contains '.'"),)<>"&...
0
votes
0
answers
22
views
Add currency to a pipe that formats amounts
I have created a reusable pipe that formats amounts like this :
2014444.65 --> 2.014.444,65.
I am trying to add currency Euro as mock data so every amount would be like 2.014.444,65€.
I have added ...
1
vote
1
answer
56
views
How to robustly parse PostgreSQL money (in Python)
How can the money type that PostgreSQL offers be robustly parsed, to extract both the value and the currency symbol? (In Python, but something a bit non-language specific is also welcome)
The problems ...
0
votes
1
answer
75
views
salesforce validate 2 currency fields
I have two currency fields, Tuition_Math__c, Tuition_Math_Max__c.
Need a validation on Tuition_Math_Max__c field.
if a value is entered in Tuition_Math_Max__c, and Tuition_Math__c is blank then user ...
1
vote
1
answer
90
views
how to change WooCommerce currency symbol in WordPress dashboard?
it's not working I added this code to the snippets plugin in WordPress dashboard.
/**
* Change a currency symbol
*/
add_filter('woocommerce_currency_symbol', 'change_existing_currency_symbol', 10, 2)...
0
votes
0
answers
14
views
Which sql data type is suitable to use for currency [duplicate]
I am using laravel for web development i am not sure what datatype to use for currency dollar($), should i use float or is there a better datatype
0
votes
1
answer
39
views
How can I remove $ from imported html
I'm using the following code.
=(index(IMPORTHTML(concat("https://coinmarketcap.com/currencies/","bitcoin"),"table",1),1,2))
I would like to multiply with the number, ...
0
votes
0
answers
28
views
How to get tradingview widget charts in INR?
Trading view widget charts are shown in USD But I want the chart in INR format
Trading View chart
0
votes
1
answer
49
views
Best way to convert a field in Rails from decimals to integer in cents
I have a Product model in Rails and the amount is stored as an integer in cents in the database.
Example of this field:
What is the best way to allow admins that are creating the product to enter a ...
-1
votes
1
answer
58
views
C Program to find the number of denominations for a given amount
now I'am nearly finished with my program but I need a little help because the math is not right.
Since I'am linking to menge with euro i thought the script will use 414. But it's somehow using an ...
1
vote
1
answer
70
views
Picker choice changing the TextField in SwiftUI
I want the user to be able to choose the currency they want to put in my app. But with this code:
import SwiftUI
struct ContentView: View {
@State private var amount = 0.0
@State private ...
0
votes
0
answers
30
views
how to output euro symbol(using Xcode)
I got a problem with output a euro currency symbol in the Xcode console
Here is code but it doesn't work. Where is the mistake?
#include <iostream>
#include <locale>
#define EXIT_SUCCESS 0
...
0
votes
2
answers
62
views
Regex find all money related value in a long string
I am trying to extract money-related value from a long string.
I can match the following format using (?:cad|[$]|usd)\s*\d+?
$1000
cad 1000
usd 1000
I have trouble with the one with 1000 separators, ...
0
votes
1
answer
180
views
Shopify multiple currencies selector - how to show not all but only a few currencies
Shopify support to sell in multiple currencies
https://shopify.dev/themes/internationalization/multiple-currencies-languages?shpxid=e645f265-1198-41B7-FF88-EFB9EDFB5CE0
In this documentation, I found ...
1
vote
1
answer
30
views
Convert IMPORTXML data to single currency, export max value via IMPORTRANGE
I'm using IMPORTXML to import prices from a certain website, but they are sometimes in USD and sometimes in GBP. Is there a way for me to import the max value (Converted to EUR) into my main sheet? ...
0
votes
1
answer
62
views
Bulk currency change within the whole Google Sheet
I have a "Currency" value cell on the "Cover page" tab with drop-down values "USD, EUR, GBP". What I need is to update the currency format for the whole document(more ...