Treat ints and floats differently

Lets it keep to the correct math when dealing with floats, and treats ints as just (int f => f/100)
Umm 1.to_f == 100%
1.to_i == 1%

Jesse McGinnis.
Sent from my phone. Please excuse the spelling, punctuation, and brevity.

On Jul 30, 2014, at 12:15, Eric Roberts <notifications@github.com> wrote:

In README.md:

> @@ -43,7 +43,7 @@ percent = Percent.new(10)
>  percent + percent   #=> Percent.new(20)
>  percent - percent   #=> Percent.new(0)
>  percent * percent   #=> Percent.new(1)
> -percent / percent   #=> Percent.new(1)
> +percent / percent   #=> Percent.new(100)

Well, Percent.new(1) would equal 1% right now. Not sure if it should be
fixed or not.

AAAAAAAH I hate percents.

—
Reply to this email directly or view it on GitHub
<https://github.com/ericroberts/percentable/pull/2/files#r15594242>.