I will answer your question with the question: what is the last value of 0.0...1.0 ?
In general, not every range is enumerable . For such excluded ranges, there really is no significant last value other than the value used to determine the end of the range.
Note that you can list ranges inclusively , where last not the last value listed!
(0..3.2).to_a.last
The design motivation is that the “value used to determine the end of the range” is not identical to the “last value specified by the range”. last gives you the first.
source share