refactor: use type casted readLong in readFloat