quickstep-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hakanmemiso...@apache.org
Subject incubator-quickstep git commit: Make scale fixed to 10^2.
Date Wed, 15 Jun 2016 18:16:40 GMT
Repository: incubator-quickstep
Updated Branches:
  refs/heads/decimal-type 5ae24b71f -> 3096215f6


Make scale fixed to 10^2.


Project: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/commit/3096215f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/tree/3096215f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-quickstep/diff/3096215f

Branch: refs/heads/decimal-type
Commit: 3096215f6730abb2f78fbf46a732b21928d15be7
Parents: 5ae24b7
Author: Hakan Memisoglu <hakanmemisoglu@apache.org>
Authored: Wed Jun 15 13:16:18 2016 -0500
Committer: Hakan Memisoglu <hakanmemisoglu@apache.org>
Committed: Wed Jun 15 13:16:18 2016 -0500

----------------------------------------------------------------------
 types/DecimalLit.hpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-quickstep/blob/3096215f/types/DecimalLit.hpp
----------------------------------------------------------------------
diff --git a/types/DecimalLit.hpp b/types/DecimalLit.hpp
index a9f3825..f203177 100644
--- a/types/DecimalLit.hpp
+++ b/types/DecimalLit.hpp
@@ -43,9 +43,9 @@ struct DecimalLit {
 
   data_type data_;
 
-  static constexpr std::uint64_t kPrecisionWidth = 4;
+  static constexpr std::uint64_t kPrecisionWidth = 2;
 
-  static constexpr std::int64_t kMaxFractionInt = 10000;
+  static constexpr std::int64_t kMaxFractionInt = 100;
 
   inline std::uint64_t getFractionalPart() const {
     return static_cast<std::uint64_t>(static_cast<std::uint64_t>(std::abs(data_))
% kMaxFractionInt);


Mime
View raw message