summaryrefslogtreecommitdiff
path: root/src/mbgl/util/dtoa.hpp
blob: e6b1659aa2e4ad5c7197e9b3d54c624d3c863c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <string>
#include <cstdlib>

namespace mbgl {
namespace util {

std::string dtoa(double value);

inline double stod(const std::string& str) {
    return ::strtod(str.c_str(), nullptr);
}

} // end namespace util
} // end namespace mbgl