Insights from Moki Systems into our products and services
>> (19.99 * 100).to_i => 1998 >> (9.99 * 100).to_i => 999
>> (19.99 * 100).to_s.to_i => 1999
just ran into this and it baffled me.
I'm switching my .to_i call to .round(0)
just ran into this and it baffled me.
ReplyDeleteI'm switching my .to_i call to .round(0)
Delete