]>
Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_float.cpp
1 ////////////////////////////////////////////////////////////////////////////////
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
8 ////////////////////////////////////////////////////////////////////////////////
9 #include "print_float.hpp"
10 #include "string_float.hpp"
15 ////////////////////////////////////////////////////////////////////////////////
16 // floating-point types
18 void print_float(std::ostream
& device
, float f
, real_display_t display
, unsigned width
, unsigned precision
)
19 throw(std::invalid_argument
)
21 device
<< float_to_string(f
, display
, width
, precision
);
24 void print_double(std::ostream
& device
, double f
, real_display_t display
, unsigned width
, unsigned precision
)
25 throw(std::invalid_argument
)
27 device
<< double_to_string(f
, display
, width
, precision
);
30 ////////////////////////////////////////////////////////////////////////////////
32 } // end namespace stlplus
This page took 0.033469 seconds and 4 git commands to generate.