currency
Here are 728 public repositories matching this topic...
The allocation docs at http://moneyphp.org/en/stable/features/allocation.html still mention the idea of adding the remained to the first value passed. Since moneyphp/money#526 that is not true anymore.
-
Updated
Jun 9, 2020 - Python
-
Updated
Jun 8, 2020 - PHP
Hi there! I'm new here and has some trouble with the api.
Expect
By default, currency resolves to a string value.
2.51 + .01; // => 2.5199999999999996
currency(2.51).add(.01); // => 2.52Actual
It returns an object but not the string i expected
2.5199999999999996
{ intValue: 252,
value: 2.52,
s:-
Updated
Jun 5, 2020 - JavaScript
-
Updated
May 19, 2020 - Java
-
Updated
Jun 4, 2020 - PHP
It would be very nice/helpful if it was possible to retrieve information whether the currency symbol should be displayed on the left or right side of the value of the currency, i.e.:
S$123 (Singapore Dollar, left) or 123€ (Euro, right)
Instead on Tab-out the original value ist restored.
suggested solution:
unformat (value) {
var emptyString = typeof value === 'string' && value === ''
value = parseFloat(value.replace ? value.replace(",",".") : value)
const toUnformat = emptyString ? this.emptyValue : value
return accounting.unformat(toUnformat, this.decimalSeparatorSymbol)
}The condition
-
Updated
Jun 2, 2020 - TypeScript
-
Updated
Mar 3, 2020 - PHP
The class comment of MonetaryAmountFormat has two code snippets. Both of them are full of compile errors
MonetaryAmountFormat f = MonetaryFormats.getInstance(loc);
f.setStyle(f.getStyle().toBuilder().setPattern("###.##;(###.##)").build());- there are no
#setStyleand#getStylemethods - there is no
#getInstancemethod onMonetaryFormats, you probably mean `#getAmount
-
Updated
May 9, 2018 - Python
-
Updated
May 21, 2020 - TypeScript
-
Updated
Mar 9, 2020 - PHP
-
Updated
Nov 3, 2018 - Go
A column for "owned by" should be added to the gain-over-time table in "Currency Summary". See net worth table for reference.
-
Updated
Jun 6, 2020 - JavaScript
-
Updated
Apr 25, 2020 - Swift
Large integers, like 9999999999999999999999999 are valid in JSON files and are valid as data parts in the 0xcert conventions. However these numbers are currently not representable in JavaScript in full fidelity. This violates some guarantees made by (or assumptions you might make while using) the 0xcert Framework. Workarounds are available.
Discussion
These examples are running Safari Ver
Version:
"react-dom": "^16.9.0",
"react": "^16.9.0",
"react-currency-input": "^1.3.6",
Warning message:
react-dom.development.js:12029 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're upda
-
Updated
Jun 8, 2020 - JavaScript
Improve this page
Add a description, image, and links to the currency topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the currency topic, visit your repo's landing page and select "manage topics."
Currently there is no possibility to set up a custom rounding function. Therefore you are limited to the ones that are implemented by default. For my case I need a rounding function that always rounds up (e.g. 0.002 => 0.01 with precision 2, commercial rounding)
It would be nice to pass a callback or a string that describes the rounding mode. If it is a string and the string matches the suppo