lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] valyuta/002 015253b 10/65: add an alternative


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 015253b 10/65: add an alternative
Date: Wed, 16 Sep 2020 16:55:12 -0400 (EDT)

branch: valyuta/002
commit 015253b6ab8ffdea341371172ef3d765ee7df9ff
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    add an alternative
---
 currency.hpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/currency.hpp b/currency.hpp
index 9b04fbb..a69383f 100644
--- a/currency.hpp
+++ b/currency.hpp
@@ -116,6 +116,8 @@ class currency
     // ...less bad:
     data_type from_double(double d) const {return round(100.0 * d);}
     double to_double() const {return bourn_cast<double>(m_) / 100.0;}
+//  data_type from_double(double d) const {return static_cast<data_type>(100.0 
* d);}
+//  double to_double() const {return static_cast<double>(m_) / 100.0;}
 
     data_type round(double d) const
         {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]