Fix number parsing (floating point cast is wrong for integers > 24bit!)