You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@quickstep.apache.org by ha...@apache.org on 2016/06/15 18:16:40 UTC
incubator-quickstep git commit: Make scale fixed to 10^2.
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 <ha...@apache.org>
Authored: Wed Jun 15 13:16:18 2016 -0500
Committer: Hakan Memisoglu <ha...@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);