use version_compare php function instead of casting to float