-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfloat_to_string.hpp
39 lines (29 loc) · 962 Bytes
/
float_to_string.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//--------------------------
// Floating point to string
//--------------------------
//
// Copyright kennytm (auraHT Ltd.) 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file doc/LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
/**
``<utils/float_to_string.hpp>`` --- Convert floating point number to string
===========================================================================
*/
#ifndef FLOAT_TO_STRING_HPP_VM6YL68OWW
#define FLOAT_TO_STRING_HPP_VM6YL68OWW 1
#include <string>
namespace utils {
/**
Members
-------
.. function:: std::string utils::to_string(long double value)
std::string utils::to_string(double value)
std::string utils::to_string(float value)
Convert the value to string accurately.
*/
std::string to_string(long double value);
std::string to_string(double value);
std::string to_string(float value);
}
#endif