-
Notifications
You must be signed in to change notification settings - Fork 1
/
outils.cpp
47 lines (41 loc) · 1.01 KB
/
outils.cpp
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
39
40
41
42
43
44
45
46
47
// auteur jean christophe michelin
// date de creation 17/02/2014
// derniere modification 24/02/2014
// outils.cpp
#include "outils.h"
#include <sstream>
#include <iostream>
#include<string.h>
#include <algorithm>
#include <sys/types.h>
#include <sys/stat.h>
#include <stddef.h>
#include <fstream>
//------------------------------------------------------------
std::string outils::ToString( double x)
{
std::ostringstream oss;
oss.precision(12);
oss << x;
std::string s = oss.str();
return s;
}
//------------------------------------------------------------
std::string outils::ToString( unsigned long int x)
{
std::ostringstream oss;
oss.precision(12);
oss << x;
std::string s = oss.str();
return s;
}
//------------------------------------------------------------
std::string outils::ToString( long int x)
{
std::ostringstream oss;
oss.precision(12);
oss << x;
std::string s = oss.str();
return s;
}