Handy C++11 function similar to lexical_cast with some added support for scientific notation, octal, and hexadecimal.