MCPcopy Index your code
hub / github.com/plotly/plotly.py / comp_nums

Function comp_nums

tests/utils.py:79–80  ·  view source on GitHub ↗
(num1, num2, tol=10e-8)

Source from the content-addressed store, hash-verified

77
78
79def comp_nums(num1, num2, tol=10e-8):
80 return abs(num1 - num2) < tol
81
82
83def comp_num_list(list1, list2, tol=10e-8):

Callers 2

compare_dictFunction · 0.85
comp_num_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected