Closed skeggse closed 11 years ago
Add Object.should.approximate(value, [precision]) for checking if two floating-point numbers approximate each other.
Object.should.approximate(value, [precision])
@visionmedia have you looked at this?
Hi @skeggse , there is already such function, but it was undocumented. I added tests for it and updated readme.
Wonderful, thanks!
Add
Object.should.approximate(value, [precision])
for checking if two floating-point numbers approximate each other.