parse input as float