<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-04-04 7:05 GMT+02:00 Manuel Gómez <span dir="ltr"><<a href="mailto:targen@gmail.com" target="_blank">targen@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[...]  Check whether regulatory compliance affects your choice of semantics.<br></blockquote><div><br></div><div>This is the most important advice: You'll probably run into legal trouble if you choose e.g. the wrong rounding mode, and for a good reason: If you handle millions of transactions in your system and sneakily always round cents "into your own pocket", you'll be a rich man. That's the reason behind the tons of rounding modes in e.g. <a href="http://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html">http://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html</a>. Ask your local lawyer which is the right one. ;-) I have serious doubts that you can handle such things with a floating point representation.</div></div></div></div>