]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_float.cpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_float.cpp
1 ////////////////////////////////////////////////////////////////////////////////
2
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
7
8 ////////////////////////////////////////////////////////////////////////////////
9 #include "print_float.hpp"
10 #include "string_float.hpp"
11
12 namespace stlplus
13 {
14
15 ////////////////////////////////////////////////////////////////////////////////
16 // floating-point types
17
18 void print_float(std::ostream& device, float f, real_display_t display, unsigned width, unsigned precision)
19 throw(std::invalid_argument)
20 {
21 device << float_to_string(f, display, width, precision);
22 }
23
24 void print_double(std::ostream& device, double f, real_display_t display, unsigned width, unsigned precision)
25 throw(std::invalid_argument)
26 {
27 device << double_to_string(f, display, width, precision);
28 }
29
30 ////////////////////////////////////////////////////////////////////////////////
31
32 } // end namespace stlplus
This page took 0.033469 seconds and 4 git commands to generate.