diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-04-23 01:22:50 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-04-23 01:22:50 +0000 |
commit | 3e2568caa2f79f3302a9ecb0a762f9c5c4b7a521 (patch) | |
tree | d33e2cc18b64e25dc988c744d17fe7c7e0a219ee /src | |
parent | 611587b848bcec771e30f8ef41d4d5ec1f3f1a4f (diff) | |
download | libbu++-3e2568caa2f79f3302a9ecb0a762f9c5c4b7a521.tar.gz libbu++-3e2568caa2f79f3302a9ecb0a762f9c5c4b7a521.tar.bz2 libbu++-3e2568caa2f79f3302a9ecb0a762f9c5c4b7a521.tar.xz libbu++-3e2568caa2f79f3302a9ecb0a762f9c5c4b7a521.zip |
Made floats work (sorta'), they use vsprintf via Bu::FString, it's not great,
it uses a lot of memory and overhead, but...it'll work (sorta') for now.
Diffstat (limited to '')
-rw-r--r-- | src/formatter.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/formatter.h b/src/formatter.h index 30ecf42..81e8db5 100644 --- a/src/formatter.h +++ b/src/formatter.h | |||
@@ -171,9 +171,12 @@ namespace Bu | |||
171 | } | 171 | } |
172 | 172 | ||
173 | template<typename type> | 173 | template<typename type> |
174 | void ffmt( type /*f*/ ) | 174 | void ffmt( type f ) |
175 | { | 175 | { |
176 | writeAligned("**make floats work**"); | 176 | Bu::FString fTmp; |
177 | fTmp.format("%f {~!~}", f ); | ||
178 | // writeAligned("**make floats work**"); | ||
179 | writeAligned( fTmp ); | ||
177 | usedFormat(); | 180 | usedFormat(); |
178 | } | 181 | } |
179 | 182 | ||