Project

General

Profile

Download (234 Bytes) Statistics
| Branch: | Tag: | Revision:
b689e231 Marc Dequènes (Duck)
def mm_to_cm(length)
return if length.nil? or length == ""
c17ca23e Marc Dequènes (Duck)
length = length.to_f / 10
b689e231 Marc Dequènes (Duck)
(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