Is this expected?
$ crystal eval "puts 3.0//4.0"
0.0 # a float?
Just wondering.
Is this expected?
$ crystal eval "puts 3.0//4.0"
0.0 # a float?
Just wondering.
Yes
The motivation is that / is arithmetic division. And // is floor division. The latest when applied to integers is the only one leads always to integers, hence their type.