Files
xrpl-hooks-ide/xrpl-hooks-docs/md/hooks-float-compare-pure.md
2023-06-06 12:28:19 +00:00

553 B

hooks-float-compare-pure

Hooks can compare floating-point values in XFL format by calling the float_compare function. If the inputs of the comparison never change, its result is fixed and the function need not be called.

This check warns about calls of float_compare with constant inputs as well as invalid values of the comparison mode parameter (if it's specified by a constant - variable parameter is ignored).

Read more