Make getFloat return a float.

Signed-off-by: William Lebel <lebelwilliam@gmail.com>