X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fstlplus%2Fstrings%2Fprint_float.cpp;h=dc10b200f503ea43c9b35e716c5c6b9b19979874;hp=a36c2c110875cd8b0a9489c87ef98354387d490a;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36 diff --git a/src/stlplus/strings/print_float.cpp b/src/stlplus/strings/print_float.cpp index a36c2c1..dc10b20 100644 --- a/src/stlplus/strings/print_float.cpp +++ b/src/stlplus/strings/print_float.cpp @@ -1,32 +1,32 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -//////////////////////////////////////////////////////////////////////////////// -#include "print_float.hpp" -#include "string_float.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // floating-point types - - void print_float(std::ostream& device, float f, real_display_t display, unsigned width, unsigned precision) - throw(std::invalid_argument) - { - device << float_to_string(f, display, width, precision); - } - - void print_double(std::ostream& device, double f, real_display_t display, unsigned width, unsigned precision) - throw(std::invalid_argument) - { - device << double_to_string(f, display, width, precision); - } - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus +//////////////////////////////////////////////////////////////////////////////// + +// Author: Andy Rushton +// Copyright: (c) Southampton University 1999-2004 +// (c) Andy Rushton 2004-2009 +// License: BSD License, see ../docs/license.html + +//////////////////////////////////////////////////////////////////////////////// +#include "print_float.hpp" +#include "string_float.hpp" + +namespace stlplus +{ + + //////////////////////////////////////////////////////////////////////////////// + // floating-point types + + void print_float(std::ostream& device, float f, real_display_t display, unsigned width, unsigned precision) + throw(std::invalid_argument) + { + device << float_to_string(f, display, width, precision); + } + + void print_double(std::ostream& device, double f, real_display_t display, unsigned width, unsigned precision) + throw(std::invalid_argument) + { + device << double_to_string(f, display, width, precision); + } + + //////////////////////////////////////////////////////////////////////////////// + +} // end namespace stlplus