Use epsilon for float comparison.
Remove unused string.
Remove checking new pointer.
Use same real value comparison as WFMath.