There's no need for an "approx_equal" to do fancy floating point compare. You get the numbers from a split - so you have strings. Just use string compare and avoid the uncertainy problems you have with floating point compare.
At one point in the evolution of my response, I was relying on strings to avoid this problem. Three reasons I switched:
In reply to Re^2: Seeking Algorithm
by tkil
in thread Seeking Algorithm
by WhiteBird
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |