Project

General

Profile

Download (234 Bytes) Statistics
| Branch: | Tag: | Revision:
def mm_to_cm(length)
return if length.nil? or length == ""
length = length.to_f / 10
(length.to_i == length) ? length.to_i : length
end

def cm_to_mm(length)
return if length.nil? or length == ""
(length.to_f * 10).to_i
end
(5-5/5)