datamapper/dm-validations — pull request #53 by pnomolos (2012-02-06 19:03:21+00:00)
Title: Reduce the chance of a rounding error when converting Float to BigDecimal.

On Ruby 1.9.3 on OS X Lion, doing 67.15.to_d.to_s('F') will return 67.15000000000001. By passing the precision to to_d it will avoid the likelihood of a slight rounding error.