Questions tagged [currency]
Currency is a medium of exchange of value, usually referring to government issued denominations.
2,975
questions
0
votes
1
answer
32
views
vb.net Excel and NumberFormat for Currency
I am trying to progamatically set an Excel column to type Currency
Hi,
I am using a vb.net application to get data from a database and put it in an Excel worksheet.
In the vb.net code, I'm doing:-
I'm ...
1
vote
1
answer
50
views
Need to add onblur to update ISA calculator results without clicking calculate
var initialAmount = parseFloat($('#initialAmount').val());
var regularAmount = parseFloat($('#regularAmount').val());
var regularFrequency = $("input[name='regularFrequency']:checked"...
0
votes
2
answers
24
views
Find the AVERAGE of Multiple Dollar Amounts in Row, Skipping Blank Cells, with an ArrayFormula (or similar) in Google Sheets
I don't know why I'm having so much trouble with this, but I basically need a version of this...
=AVERAGE(A2:L2)
...But to put into something like an ArrayFormula in the header row so it will ...
0
votes
1
answer
22
views
Sum including all numbers ONLY want to sum currency valued
I have a cell with a bunch of numbers, Ing currency dollar values I only want to sum the dollar values
Tons of suggested formulas and watched videos with no luck
Cell includes: 3d youth barrels $5, ...
2
votes
4
answers
132
views
Give change using optimal denominations *considering that using descending units might not result in a correct result
I'm struggling to solve a problem regarding a programming challenge:
Rules:
The cash register only has $2, $5, and $10 bills. Your algorithm should determine the best way to give change for any ...
-1
votes
1
answer
60
views
regex search digit or digit and space to length of search term in js. In this case, 3-5 characters, if there are spaces
me find the values "ddd", "dsdd", "ddsd" from the list below: "150 EUR 15 000 EUR 150 150 EUR 1 500 EUR".
I tried:
/(\d{3})|(\d+\s\d{1,2})/gm
The result of the ...
4
votes
2
answers
105
views
How do I efficiently add existentially typed safe money values?
I wrote a toy library that uses dependent types to represent money with its currency in the type signature:
data Currency = CHF | EUR | PLN | USD
deriving stock (Bounded, Enum, Eq, Read, Show)
data ...
0
votes
1
answer
60
views
Making a SIMPLE ALV, but Currency and Price is tricky
I have created a simple ALV report and here I want to display Display Total and Subtotal for Currency/Price. However, it is very tricky as it does not add the price and only the currency of the last ...
0
votes
0
answers
37
views
Method 'convert' not found in \AmrShawky\LaravelCurrency\Facade\Currency
I am using package :- https://github.com/amrshawky/laravel-currency to convert the price
In the docs iam using simple line of code.
$currency_conversion = Currency::convert()->from("USD")-...
-2
votes
3
answers
82
views
What's difference between float, double and decimal in sql? [duplicate]
I was asked to add a column containg the bonuses of salary of employees, examples of this values were give such as: 1099.99 or 2.00. Task also asked me to add appropriate data type but I was confused ...
0
votes
1
answer
57
views
Automatic Currency Conversion From USD to BTC Using blockchain.com URL
The idea is very simple since the URL automatically updates the price itself, all I need is to add the BTC price within brackets.
Example: 0.00003573 is the result from using this URL:
https://www....
0
votes
0
answers
71
views
Meta Insights API - show Spend of all campaigns in USD
I've been trying to pull out the spend of each ad campaign using the Meta Insights API, but the spend comes out as the currency as stated in the account_currency field.
When creating a report through ...
0
votes
0
answers
9
views
How to integrate Plaid Link into a Kivy app?
I am building a money app with Kivy and KivyMD, and i need to use Plaid to manage the transactions. Is it possible to integrate Plaid into a Kivy app ?
I expect to integrate Plaid Link into my Kivy ...
0
votes
0
answers
34
views
Locking GOOGLEFINANCE exchange rate at the moment when data is input
First post on stackoverflow, so please bear with me.
I use a google spreadsheet to track my expenses. As I have expenses in both EUR and Swiss Francs, I would like to program it, so that when I input ...
0
votes
0
answers
39
views
keep html visible data even after refreshing the page in localstorage javascript
I made a cart page with some items in it, I made a deleteItemFromCart() function that deletes the wanted to delete item.
One thing I couldn't manage to do is store the changes to the browser so ...
0
votes
1
answer
61
views
In SwiftUI can I set a locale in Preview for currency etc. but keep generic format for text fields eg Locale.current.currencyCode ?? "GBP"
Xcode version 15.0 set to iOS 15.0
As the title says my App uses Text(someAmount, format: Locale.current.currencyCode ?? "GBP") to display an amount of currency the symbol of which should ...
0
votes
1
answer
23
views
format getting rounded off by a large amount using Intl.NumberFormat [duplicate]
let just_the_number = '8973565';
const just_the_number_formatted = Intl.NumberFormat("en-IN", { minimumFractionDigits: 0 }).format(parseFloat(just_the_number));
console.log(...
-2
votes
1
answer
37
views
getting wrong output for USD, CAD, 1.3; USD, GBP, 0.71; USD, JPY, 109; GBP, JPY, 155 expected Expected 110.5 but getting-1.0
import java.io.*;
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader = new InputStreamReader(...
0
votes
1
answer
79
views
All available currencies in Flutter
I would like to get a list of all available currencies.
For Android, such a list can be obtained like this:
Get All Possible Available Currencies
For iOS like this:
Get list of supported currencies ...
2
votes
1
answer
35
views
how to determine currency symbol of current locale in POSIX shell script?
ahoy all.
while finding a few answers related to determining the locale's decimal separator (AKA radix point, thousands separator) in a shell script, the only answers that i have found related to ...
2
votes
2
answers
148
views
Country Currency formatting using 'NumberFormat' class Java
I'm currently working on a task that involves taking a double-precision number representing a sum of money and using the NumberFormat class' getCurrencyInstance method to convert it into the currency ...
0
votes
1
answer
29
views
Convert String to 2 Decimal Places
I use the code below to add two number strings from divs and display the result in another div. It functions as intended, however, when 2.50 & 2.00 are added from the strings the result is ...
0
votes
1
answer
62
views
AutoDetect numbers with currency and extract the numbers( Using any library)
I am trying to solve a problem where my input looks like this :
String textWithCurrency = "د.ع. 40,986.63";
In here, the currency is Arabic, from this input the number should be ...
0
votes
1
answer
30
views
Create Batch Payment in Foreign Currency
We are currently using the "Xero API" NPM package and are having an issue when creating a batch payment for a Foreign Currency. We are a British based company and our organisation base ...
0
votes
1
answer
246
views
Currency formula field issue in Salesforce
In our Salesforce Org, we have enabled multiple currencies and we had setup the dated exchange rates also. We have a child object called requestObject for Opportunity Product. The Opportunity product ...
0
votes
1
answer
57
views
Trunc in delphi
I am trying to separate currency number into two separate integer,
var
StrNum: string;
CurDecimalNum: currency;
Amount : currency;
begin
Amount := 1868.45;
StrNum := FormatFloat('00', ...
0
votes
1
answer
82
views
Angular Currency Pipe Symbol not available for GYD (Guyana Dollar), How can I configure the Symbols in App.module?
<h1> My rate is : {{'202' | currency:'GYD'}}</h1>`
Current Output is : GYD 202
Expected Ouput is GY$ 202
0
votes
1
answer
14
views
Did using stipe medium planes cause me any loss?
I made a stripe + nodejs code but I had a doubt, how can I guarantee that the customer actually paid, because my plan is measured by use so pretend that the user used the service 5 times and his bill ...
0
votes
0
answers
30
views
Create an alert to email set User when Currency Exchange Rate is changed in NetSuite
Currently in NetSuite if someone has at least the privilege EDIT on Currency, they can change the exchange rate provided by the rate provider.
The only search allowed is on the Currency Exchange Rate ...
1
vote
0
answers
25
views
preserving 0's after decimal point while displaying Currency in Indian Numbering Format in PHP
I need to display '150000.50' in Indian number format with the last zero intact.
I followed the following, but the solution
Previous answer doesn't completely solve the issue. It removes the last 0 ...
0
votes
1
answer
18
views
Create a general currency symbol mixin for any [small] text
I have to show some prices in different places on a site I am building. For that, I created a sass mixin that should help to create the currency symbol I want before the price and with a smaller font-...
1
vote
1
answer
91
views
Call a function after geolocalization in Woocommerce
I am using the plugin FOX – Currency Switcher Professional for WooCommerce (former name is WOOCS) and everything was working smoothly. Then I have installed a budgeter plugin. Unfortunately, it is not ...
0
votes
0
answers
35
views
oTree: USE_POINTS=True in one app and False in another?
I'm designing an experiment in oTree which uses points during the main part but in the questionnaires, I'd like it to use currency instead.
The last thing I tried was this, in settings.py:
for app in ...
0
votes
0
answers
34
views
MySql : Is there any better way to link transaction table with currency exchange table to get corresponding exchange rate
Is there any better way (performance wise) to link transactions with currency exchange table where the transaction table has more than a million records ?
tabTran
date
amount
currency
2023-01-01
100
...
0
votes
2
answers
39
views
Why is my MS Access report changing the actual cents to .00 instead of real numbers?
My table and subsequent queries all show actual numbers but for some reason the report is taking the cent value and changing it to .00 instead of the actual number coming from the query.This is the ...
0
votes
1
answer
365
views
How to get historical currency exchange rate
Title sums it up. I cannot use most API because they have a ratelimit and I have 50-60k values I need to retrieve from different days and currencies(it's about as many different days as requests).
I ...
1
vote
1
answer
84
views
Django formatting DecimalField to money
In my Django project I'm saving a money amount in a decimalField. The problem is the format of the number when I print it. I need it in the german money format 10.000,00 € so first a point as ...
0
votes
1
answer
66
views
exceljs nmFmt currency variable
I am using exceljs and numFmt to display a currency, but the currency isn't just dollars, it isn't just '$' - the currency symbol can change, the currency is a variable. How do I get this to display ...
0
votes
2
answers
91
views
Having trouble using if-else statements to print number of 100, 50, 10, and 1 rupee notes in Python 3.x
Write a program that reads an amount A and prints the minimum number of 100, 50, 10 and 1 rupee notes required for the given amount.
Output:
The first line of output should be a string containing the ...
0
votes
0
answers
60
views
PHP NumberFormatter remove currency code prefix
I want to use same currency code across all different locale. But i want to remove short currency code prefix from amount and only use currency symbol with amount.
for example:
suppose default ...
1
vote
0
answers
22
views
openmoney query SDK query SDK for production
const sdk = require('api')('@bank-open/v1#1mld74kq6w4cej');
if this is for sandbox what is for production in OPENMONEY payment gateway
sdk.auth(token)
let result = await sdk.generateToken({
...
0
votes
0
answers
30
views
Create currency input with superscript in flutter
I need make a flutter currency input like this in image
Screenshot
I have been looking for some library that helps me with this, but didnt found anyone.
Please note that symbol and decimals are like ...
0
votes
1
answer
122
views
Update react number input fail
I'm trying to create a React functional component that be able to format a float number into a currency number (using comma and dot). My approach is use onBlur event for start to transform the number ...
-1
votes
1
answer
57
views
Problem with extracting price in a string [duplicate]
String quantity = cboAmount.getSelectedItem().toString();
String product = cboProduct.getSelectedItem().toString();
String price = product.replaceAll("(\\d+(?:\\.\\d{1,2})?)", "");...
0
votes
2
answers
30
views
Rails round currency to nearest 5 cents with `number_to_currency`
Rails does a great job when it comes to providing view helpers that are internationally useful. This applies to currencies as well, using the helper number_to_currency. However, per documentation, I ...
0
votes
2
answers
34
views
Convert back from ILS currency to a number
I have a Currency input that is formatted to ILS (israeli new Shekel) and I want my onChange event to record the value, but as a number. this is what I tried:
<CurrencyInput
...
0
votes
0
answers
51
views
Changing symbol and format for specific currency
I have two currencies; USD and SWC (which is a custom points based currency).
Woocommerce allows me to set a default currency, decimal and symbol position which applies to both however I'd like to ...
0
votes
0
answers
157
views
SAPUI5 Input currency not validating decimal point for JPY
I've setup an input field as a currency type, and also included error handling by adding the following to the manifest.json
"handleValidation": true,
<Input value="{parts: ['...
0
votes
0
answers
34
views
Why does changing the currency on my api call make the data retrieved not accurate?
I am trying to get an api to send me data in GBP instead of USD however when I tried the api sent over the wrong values.
https://api.twelvedata.com/time_series?symbol=aapl&interval=1week&...
-1
votes
1
answer
102
views
Adding Currency sign to numeric value so that data type will remain as float. python
I have a dataframe, and I need to add a currency sign to a numeric value in a column, so that the datatype of that column will still remain the same as float type, so i can sum or find mean.
when I ...