Added functions for numerical comparison.

Let me know if this is a valuable addition to SM or how I could improve it.