Namespaces | Functions
lexical_casts.h File Reference

locale-agnostic conversion functions from floating point numbers to strings More...

#include <string>
Include dependency graph for lexical_casts.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

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.



moveit_core
Author(s): Ioan Sucan , Sachin Chitta , Acorn Pooley
autogenerated on Sun Nov 3 2024 03:26:15