I am orienting in ruby and crystal. Because the syntax is so similar:
(z - x) / (y - x)
I read that the last statement in a method is returned. Why is this method returning 0? it should return 0.5
ps. how to correctly post code into this forum?