Resolve issues #8 and #9 by using xsd:double if the form is float or double.