scifir-units 2.0.0
scifir-units is a library of units of measurement, angles, coordinates, fields, and related data, all lightweight, that help in the development of scientific software and scientific machines
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#ifndef SCIFIR_UNITS_UTIL_TYPES_HPP_INCLUDED
2#define SCIFIR_UNITS_UTIL_TYPES_HPP_INCLUDED
3
4#include <string>
5
6using namespace std;
7
8namespace scifir
9{
10 float parse_float(const string& x);
11 int parse_int(const string& x);
12 string display_float(const float& value,int number_of_decimals = 2);
13 string display_double(const double& value,int number_of_decimals = 2);
14 string display_long_double(const long double& value,int number_of_decimals = 2);
15}
16
17#endif // SCIFIR_UNITS_UTIL_TYPES_HPP_INCLUDED
The namespace scifir contains all scifir-units, excepting the string literals, which are outside.
Definition address.cpp:6
string display_float(const float &value, int number_of_decimals)
Definition types.cpp:36
string display_double(const double &value, int number_of_decimals)
Definition types.cpp:57
float parse_float(const string &x)
Definition types.cpp:10
string display_long_double(const long double &value, int number_of_decimals)
Definition types.cpp:78
int parse_int(const string &x)
Definition types.cpp:23