locale-agnostic conversion functions from floating point numbers to strings More...
#include <string>
Go to the source code of this file.
Namespaces | |
moveit | |
Main namespace for MoveIt! | |
moveit::core | |
Core components of MoveIt! | |
Functions | |
double | moveit::core::toDouble (const std::string &s) |
Converts a std::string to double using the classic C locale. More... | |
float | moveit::core::toFloat (const std::string &s) |
Converts a std::string to float using the classic C locale. More... | |
std::string | moveit::core::toString (double d) |
Convert a double to std::string using the classic C locale. More... | |
std::string | moveit::core::toString (float f) |
Convert a float to std::string using the classic C locale. More... | |
locale-agnostic conversion functions from floating point numbers to strings
Depending on the system locale, a different decimal seperator might be used for floating point numbers. This is often not wanted for internal (ie non-user facing) purposes. This module provides conversion functions that use std::locale::classic() (i.e. the default if no locale is set on the system).
Definition in file lexical_casts.h.