fixes #1888; strict float comparison