Quantcast
Channel: Active questions tagged units - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 41

Currency Interpretation for VND

$
0
0

Bug introduced in v12.2.0 or earlier, persisting through v13.2.1. Case number: 4973722


As I was helping an OP with a question involving Vietnamese currency, I didn't realize at the time that the currency amount was not being interpreted accurately (or so I think now). Apparently, the decimal point is used as a thousands separator for VND. There are three possibilities:

  • The interpretation is correct and I don't understand how their currency works.
  • I am using the function incorrectly or at least missing some options.
  • Or the interpreter is not working correctly for this particular currency.

For completeness sake, here is a screenshot.

enter image description here

----------------------------

Mma interprets Euros from a website text correctly; i.e., recognizes currency format:

astr = "MATHEMATICA kompakt: Mathematische Problemlösungen für \Ingenieure, Mathematiker und Naturwissenschaftlervon Hans Benker | 15. Oktober 20164,6 von 5 Sternen 3Kindle29,99 € 29,99 €Sofort lieferbarTaschenbuch39,99 € 39,99 €KOSTENLOSE Lieferung";tcases = TextCases[astr, "CurrencyAmount" -> "Interpretation"]

{Quantity[29.99, "Euros"], Quantity[29.99, "Euros"], "99 € 39,99 €"}

I hope that this post reaches its correct destination.


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>