recipe.CompareNumbers Edit

boolean recipe.CompareNumbers(number num1, number num2)
Returns true if the two real numbers are the same to the precision that Lua prints.
V1 Function Name
New to V2
More Information

Remarks Edit

Lua sometimes returns that a == b is true, but when you print out the numbers they appear different by a small fraction. Using recipe.CompareNumbers(a, b) allows comparing two numbers to the the maximum precision available on a system.

Example Edit

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.