Download tools/mosesdecoder/util/float_to_string.hh from Quagmire1/wiki-cased: direct link, hf CLI and curl.
- Browser
- Download file 614 Bytes
-
https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/util/float_to_string.hh
- Command line
-
hf download hf://Quagmire1/wiki-cased/tools/mosesdecoder/util/float_to_string.hh
-
curl -L -o float_to_string.hh https://huggingface.co/Quagmire1/wiki-cased/resolve/main/tools/mosesdecoder/util/float_to_string.hh
614 Bytes
| // Just for ToStringBuf | |
| namespace util { | |
| template <> struct ToStringBuf<double> { | |
| // DoubleToStringConverter::kBase10MaximalLength + 1 for null paranoia. | |
| static const unsigned kBytes = 19; | |
| }; | |
| // Single wasn't documented in double conversion, so be conservative and | |
| // say the same as double. | |
| template <> struct ToStringBuf<float> { | |
| static const unsigned kBytes = 19; | |
| }; | |
| char *ToString(double value, char *to); | |
| char *ToString(float value, char *to); | |
| } // namespace util | |