Simple implementation of parseFloat.

Added tests.