use Math.floor instead of ~~ for integer

When testing large numbers, ~~ gives results that are inconsistent with Math.floor(). The performance impact is [*very* small](http://jsperf.com/tilde-vs-floor).

I'm not quite familiar with revalidator's test suite, so please let me know if the test I've added belongs elsewhere.