this might be a pure python problem or a problem with arcpy. please help me out:
min_area = float(GKPROZ_functions.min_of_field(out_name,"Shape_Area")) print area_max if min_area > area_max: print "success!" else: print "failed." if min_area > 100: print "success!" else: print "failed." print str(min_area)
100 failed. success! 100.018289077
min_of_field returns the minimum value of the field "Shape_Area" of the whole feature class. it is (apparently) 100.018289077. however if i check that with area_max (supposedly 100) it says it's smaller (failed!). if i check it with 100, it says it's bigger(success!). what mistake am i making here? thanks in advance.