From 3e2568caa2f79f3302a9ecb0a762f9c5c4b7a521 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 23 Apr 2009 01:22:50 +0000 Subject: 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. --- src/formatter.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 } template - void ffmt( type /*f*/ ) + void ffmt( type f ) { - writeAligned("**make floats work**"); + Bu::FString fTmp; + fTmp.format("%f {~!~}", f ); +// writeAligned("**make floats work**"); + writeAligned( fTmp ); usedFormat(); } -- cgit v1.2.3