diff options
Diffstat (limited to 'src/float.cpp')
-rw-r--r-- | src/float.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/float.cpp b/src/float.cpp index e257b37..139df3e 100644 --- a/src/float.cpp +++ b/src/float.cpp | |||
@@ -1,6 +1,8 @@ | |||
1 | #include "gats/float.h" | 1 | #include "gats/float.h" |
2 | #include "gats/integer.h" | 2 | #include "gats/integer.h" |
3 | 3 | ||
4 | #include <bu/formatter.h> | ||
5 | |||
4 | Gats::Float::Float() : | 6 | Gats::Float::Float() : |
5 | fVal( 0.0 ) | 7 | fVal( 0.0 ) |
6 | { | 8 | { |
@@ -35,3 +37,8 @@ void Gats::Float::read( Bu::Stream &rIn, char cType ) | |||
35 | sscanf( buf, "%la", &fVal ); | 37 | sscanf( buf, "%la", &fVal ); |
36 | } | 38 | } |
37 | 39 | ||
40 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::Float &flt ) | ||
41 | { | ||
42 | return f << "(float) " << flt.getValue(); | ||
43 | } | ||
44 | |||