Project

General

Profile

Download (234 Bytes) Statistics
| Branch: | Tag: | Revision:

root / lib / utils.rb @ master

1
def mm_to_cm(length)
2
  return if length.nil? or length == ""
3
  length = length.to_f / 10
4
  (length.to_i == length) ? length.to_i : length
5
end
6

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