added float type and rules for it