v1, works for positive operands
the float implementation is a minor diff bw java and python
sol of q150