Support float numbers for to and from

I needed to count up to 7.6 (float number) so I used parseFloat instead of parseInt on the to: and from: options.