fix comparaisons between var and float