[clang-tidy] Avoid float compare in bugprone-incorrect-roundings

Using APFloat to compare floating numbers instead of float/double.

Fixes: #46424

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D147906

GitOrigin-RevId: a73b87b8bd47e0634d741e655ae37a22f6b82287
1 file changed