diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-16 01:42:45 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-16 01:42:45 (GMT) |
commit | 61a4fc30317717769240602095af531a7e297fa2 (patch) | |
tree | d4c6cf50dc176180d36e6c24ab5320ea68ff9698 /src/transform.cc | |
parent | 5138dca395adb11753080017361d69abb82666a1 (diff) |
solve some floating point comparison issues in multmatrix dump().
also indent some stuff properly
Diffstat (limited to 'src/transform.cc')
-rw-r--r-- | src/transform.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transform.cc b/src/transform.cc index d94e0d4..b01827f 100644 --- a/src/transform.cc +++ b/src/transform.cc @@ -190,8 +190,8 @@ std::string TransformNode::toString() const for (int j=0;j<4;j++) { stream << "["; for (int i=0;i<4;i++) { - // FIXME: The 0 test is to avoid a leading minus before a single 0 (cosmetics) - stream << two_digit_exp_format((this->matrix(j, i)==0)?0:this->matrix(j, i)); + Value v( this->matrix(j, i) ); + stream << v; if (i != 3) stream << ", "; } stream << "]"; |