mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-12-12 10:41:43 +00:00
16 lines
416 B
C++
16 lines
416 B
C++
#ifndef YAML_H_FPTOSTRING
|
|
#define YAML_H_FPTOSTRING
|
|
|
|
#include "yaml-cpp/dll.h"
|
|
|
|
#include <string>
|
|
|
|
namespace YAML {
|
|
// "precision = 0" refers to shortest known unique representation of the value
|
|
YAML_CPP_API std::string FpToString(float v, size_t precision = 0);
|
|
YAML_CPP_API std::string FpToString(double v, size_t precision = 0);
|
|
YAML_CPP_API std::string FpToString(long double v, size_t precision = 0);
|
|
}
|
|
|
|
#endif
|