Make getFloat returns a float.

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