aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-07-20 14:02:46 +0000
committerMike Buland <eichlan@xagasoft.com>2011-07-20 14:02:46 +0000
commitd0d86b9ae6a86fec59f69c76352c640e759bd4a1 (patch)
tree8b285e7a199660fcd26c638ec3c14eee3808bf56
parent0ac83365291af6260a45730bd24a0c0d98d9d8fd (diff)
downloadlibbu++-d0d86b9ae6a86fec59f69c76352c640e759bd4a1.tar.gz
libbu++-d0d86b9ae6a86fec59f69c76352c640e759bd4a1.tar.bz2
libbu++-d0d86b9ae6a86fec59f69c76352c640e759bd4a1.tar.xz
libbu++-d0d86b9ae6a86fec59f69c76352c640e759bd4a1.zip
Oh wow, floats didn't have signs. Scary.
Diffstat (limited to '')
-rw-r--r--src/formatter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/formatter.h b/src/formatter.h
index b66f621..5840323 100644
--- a/src/formatter.h
+++ b/src/formatter.h
@@ -147,6 +147,7 @@ namespace Bu
147 { 147 {
148 bNeg = true; 148 bNeg = true;
149 f = -f; 149 f = -f;
150 fTmp += "-";
150 } 151 }
151 int iScale = tfloor(tlog( f ) / tlog( (type)fLast.uRadix )); 152 int iScale = tfloor(tlog( f ) / tlog( (type)fLast.uRadix ));
152 f /= tpow( (type)fLast.uRadix, (type)iScale ); 153 f /= tpow( (type)fLast.uRadix, (type)iScale );