Fixed problem with float and doubles precission.