A fathom (abbreviation: ftm) is a unit of length in the imperial and the
U.S. customary systems, used especially for measuring the depth of water.

@return The value converted from the current unit to Fathoms
337432
public MDecimal getFathoms() {
		MDecimal result = new MDecimal(currentUnit.getConverterTo(FATHOM)
				.convert(doubleValue()));
		logger.trace(MMarker.GETTER, "Converting from {} to Fathoms : {}",
				currentUnit, result);
		return result;
	}
21494
public int getLength()
  {
    int length = 0;
    
    for (TempCharBuffer ptr = _head; ptr != null; ptr = ptr._next) {
      length += ptr.getLength();
    }

    return length;
  }
312373
function measureLength (meter) {
  var m = meter.split('/').map(function (n) {
    return +n.trim()
  })
  return m[0] * (4 / m[1])
}
259718
@SuppressWarnings("resource")
    public String getLength() {

        try {
            return CmsFileUtil.formatFilesize(
                IOUtils.toByteArray(new FileInputStream(m_variationPath)).length,
                A_CmsUI.get().getLocale());
        } catch (IOException e) {
            return "";
        }
    }
16671
@Override
  public UnitValue convert(UnitValue value) {
    Unit src = value.unit();
    switch (src.category()) {
      case CONCENTR:
      case LIGHT:
        // Not available
        break;
        
      case ACCELERATION:
        return convert(value, Unit.METER_PER_SECOND_SQUARED, UnitFactors.ACCELERATION);
      case ANGLE:
        return convert(value, UnitFactorSets.ANGLE);
      case AREA:
        return convert(value, areaFactors());
      case CONSUMPTION:
        return convert(value, consumptionUnit());
      case DIGITAL:
        return convert(value, UnitFactorSets.DIGITAL_BYTES);
      case DURATION:
        return convert(value, UnitFactorSets.DURATION);
      case ELECTRIC:
        return convert(value, UnitFactorSets.ELECTRIC);
      case ENERGY:
        return convert(value, energyFactors());
      case FREQUENCY:
        return convert(value, UnitFactorSets.FREQUENCY);
      case LENGTH:
        return convert(value, lengthFactors());
      case MASS:
        return convert(value, massFactors());
      case POWER:
        return convert(value, UnitFactorSets.POWER);
      case PRESSURE:
        return convert(value, Unit.MILLIBAR);
      case SPEED:
        return convert(value, speedUnit());
      case TEMPERATURE:
        return convert(value, temperatureUnit());
      case VOLUME:
        return convert(value, volumeFactors());
    }
    
    return value;
  }
162939
public int length() {

        int days = 1;
        Weekday current = this.start;

        while (current != this.end) {
            days++;
            current = current.next();
        }

        return days;

    }
1081398
public Map<String, Float> getTermAndRank(String content, int size)
    {
        Map<String, Float> map = getTermAndRank(content);
        Map<String, Float> result = top(size, map);

        return result;
    }
1303843
function(architectural, units, precision) {
		if (typeof architectural !== "string" && !(architectural instanceof String))
			return false;
		if(architectural.match(/^(([0-9]+)\')?([-\s])*((([0-9]+\")([-\s])*|([0-9]*)([-\s]*)([0-9]+)(\/{1})([0-9]+\")))?$/g) === null)
			return false;
		if(["1", "1/10", "1/100", "1/1000", "1/10000", "1/100000", "1/1000000", "1/10000000"].indexOf(precision) < 0)
			return false;
		if(["inches", "feet"].indexOf(units) < 0)
			return false;
		
		var decimal = 0;
		
		var feet = architectural.match(/^([0-9]+)\'[-\s]*/);
		if(feet !== null)
			decimal += parseInt(feet[1]) * 12;
		
		var inches = architectural.match(/([-\s\']+([0-9]+)|^([0-9]+))[-\s\"]+/);
		if(inches !== null) {
			if(feet !== null)
				decimal += parseInt(inches[2]);
			else
				decimal += parseInt(inches[3]);
		}
		
		var fraction = architectural.match(/([-\s\']+([0-9]+\/[0-9]+)|(^[0-9]+\/[0-9]+))\"/);
		if(fraction !== null) {
			if(feet !== null || inches !== null)
				decimal += divideFraction(fraction[2]);
			else
				decimal += divideFraction(fraction[3]);
		}
		
		if(units !== "inches")
			decimal = decimal / 12;
		
		decimal = roundNumber(decimal, ["1", "1/10", "1/100", "1/1000", "1/10000", "1/100000", "1/1000000", "1/10000000"].indexOf(precision));
		
		return decimal;
	}
565402
public Map<String, Float> getTermAndRank(String content)
    {
        assert content != null;
        List<Term> termList = defaultSegment.seg(content);
        return getTermAndRank(termList);
    }
115197
public long length() {
        return doWithJedis(new JedisCallable<Long>() {
            @Override
            public Long call(Jedis jedis) {
                return jedis.exists(getKey()) ? jedis.hlen(getKey()) : 0;
            }
        });
    }
75823
function intLength(num) {
		num = num.replace(/^\-/, '');
		if (~num.indexOf('.')) {
			return num.split('.')[0].length;
		}
		
		return num.length;
	}
142355
public static Length of(final double length, final Unit unit) {
		requireNonNull(unit);
		return new Length(Unit.METER.convert(length, unit));
	}
654236
@Transformer
    public static int len(Object o) {
        if (o instanceof Collection) {
            return ((Collection)o).size();
        } else if (o instanceof Map) {
            return ((Map)o).size();
        } else if (o.getClass().isArray()) {
            return Array.getLength(o);
        } else {
            return str(o).length();
        }
    }
365254
protected int getDepth( final WebdavRequest req )
    {
        int depth = INFINITY;
        final String depthStr = req.getHeader( "Depth" );
        if ( depthStr != null )
        {
            if ( depthStr.equals( "0" ) )
            {
                depth = 0;
            }
            else if ( depthStr.equals( "1" ) )
            {
                depth = 1;
            }
        }
        return depth;
    }
578556
public function getLength() : ?float 
    {
        if ( ! $this->hasLength()) {
            $this->setLength($this->getDefaultLength());
        }
        return $this->length;
    }
61560
public T growW() {
		T a;
		if( size >= data.length) {
			a = data[start];
			if( a == null )
				data[start] = a = createInstance();
			start = (start+1)%data.length;
		} else {
			a = data[(start+size)%data.length];
			if( a == null )
				data[(start+size)%data.length] = a = createInstance();
			size++;
		}
		return a;
	}
1362066
public final int size()
  {
    if (tc.isEntryEnabled())
      SibTr.entry(tc, "size");
    int result = (m_tail >= m_head) ? (m_tail - m_head) : (m_array.length - m_head + m_tail);
    if (tc.isEntryEnabled())
      SibTr.exit(tc, "size", new Integer(result));
    return result;
  }