# Module rsvg::float_eq_cairo

source Β· ## Expand description

Utilities to compare floating-point numbers.

## ConstantsΒ§

- CAIRO_FIXED_MAX π
- The largest representable fixed-point number, as a double. This is a bit over 8 million.
- CAIRO_FIXED_MIN π
- The most negative representable fixed-point number, as a double. This is a bit less than -8 million.
- The double that corresponds to (the number one in fixed-point representation)

## TraitsΒ§

- Checks whether two floating-point numbers are approximately equal, considering Cairoβs limitations on numeric representation.
- Implements a method to check whether two
`f64`

numbers would have the same fixed-point representation in Cairo.

## FunctionsΒ§

- cairo_magic_double π