@mocanvas/editor · function

approximately

declare function approximately(a: number, b: number, precision?: number): boolean

Whether two numbers are equal to within precision. Use this rather than === on anything that has been through a transform.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.