[Qt-interest] Best way to manipulate currency values?

Atlant Schmidt aschmidt at dekaresearch.com
Mon Oct 25 14:30:25 CEST 2010


Marcelo:

  Currency is almost always manipulated using scaled
  arithmetic. That is, if your currency has (for example)
  Euros and Eurocents, you scale by 100 and, effectively,
  calculate everything in Eurocents.

                          Atlant



-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Marcelo Magno T. Sales
Sent: Monday, October 25, 2010 08:21
To: qt-interest at trolltech.com
Subject: [Qt-interest] Best way to manipulate currency values?

Hello,

What is the best way to manipulate currency values with QT? float and
double introduce imprecisions that are not acceptable when dealing with
monetary values.

Thanks,

Marcelo
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest

This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.




More information about the Qt-interest-old mailing list