From: Thibault Jouan Date: 2018-07-20T17:23:19+00:00 Subject: [ruby-core:88025] Re: [Ruby trunk Feature#14924] // floor division operator > In my job, I have to do many math operations. And it's kind of a pain because of integer division (3 / 2 == 1). I have to constantly cast integers to floats. I'm not sure if this is better for your use case, but as an alternative to conversions, we may use: ~~~ ruby 3.fdiv 2 ~~~ > Would it be a good idea to always return a float when you divide two numbers? I mean, 99% of the time you just want that. (The principle of least surprise.) I think it may be subjective, 99�% of the time I do want integer division�:-) Unsubscribe: