dominikh / filesize

filesize is a small ruby class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size.
MIT License
81 stars 16 forks source link

Fixing handling non-integer sizes #1

Closed alno closed 14 years ago

alno commented 14 years ago

There was an error in handling non-integer sizes:

Filesize.from('1.5 kB').to_i => 1000

Please update gem, if it possible.