Added C++ functions strToFloat and strToDouble.