check if the given value is close to the expected one
value to be compared with.
actual value to compare
Optional
float precision for the comparison
if close to
// test if the given value is close to 10if (math.toBeCloseTo(10, value)) { // do something} Copy
// test if the given value is close to 10if (math.toBeCloseTo(10, value)) { // do something}
check if the given value is close to the expected one