00001 #ifndef UTIL_FLOAT_TO_STRING_H
00002 #define UTIL_FLOAT_TO_STRING_H
00003
00004
00005 #include "util/integer_to_string.hh"
00006
00007 namespace util {
00008
00009 template <> struct ToStringBuf<double> {
00010
00011 static const unsigned kBytes = 19;
00012 };
00013
00014
00015
00016 template <> struct ToStringBuf<float> {
00017 static const unsigned kBytes = 19;
00018 };
00019
00020 char *ToString(double value, char *to);
00021 char *ToString(float value, char *to);
00022
00023 }
00024
00025 #endif // UTIL_FLOAT_TO_STRING_H