use text_type instead of str
add compare method to compare floats with a given epsilon
Merge pull request #69 from timofurrer/compare_floats

compare floats with epsilon