|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |
#include "ot/base/NumUtils.h"
Class module containing functions to convert numbers into Strings and vice versa.
Method Summary | |
static double |
ToDouble(const String& str) Converts a String into a double-precision floating-point value. |
static int |
ToInt(const String& str, int base) Converts a String into an integer value. |
static long |
ToLong(const String& str, int base) Converts a String into a long integer value. |
static String |
ToString(long x) Converts the long value x into a String. |
static String |
ToString(unsigned long x) Converts the unsigned long value x into a String. |
static String |
ToString(int x) Converts the integer value x into a String. |
static String |
ToString(unsigned int x) Converts the unsigned integer value x into a String. |
static String |
ToString(double d) Converts the double-precision floating-point value x into a String. |
Method Detail |
static double ToDouble(const String& str)
str
- static int ToInt(const String& str, int base)
str
- base
- static long ToLong(const String& str, int base)
str
- base
- static String ToString(long x)
static String ToString(unsigned long x)
static String ToString(int x)
static String ToString(unsigned int x)
static String ToString(double d)
|
OpenTop 1.3 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||
SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD |