Use correct assertion for floats.