data.val-max

ratio

(ratio [v mx])

If mx and v is 0, returns 0, otherwise (/ v mx)