Did I find the right examples for you? yes no

All Samples(95)  |  Call(95)  |  Derive(0)  |  Import(0)

src/a/r/Art3dUtils-0.3.7/art3dutils/utilities.py   Art3dUtils(Download)
            if enforce_type is 'int':
                try:
                    value = float(value.strip('.'))
                except ValueError:
                    pass

src/l/e/lesscpy-0.10.1/lesscpy/lessc/color.py   lesscpy(Download)
        if color and degree:
            if isinstance(degree, str):
                degree = float(degree.strip('%'))
            h, l, s = self._hextohls(color)
            h = ((h * 360.0) + degree) % 360.0
    def _ophsl(self, color, diff, idx, operation):
        if isinstance(diff, str):
            diff = float(diff.strip('%'))
        hls = list(self._hextohls(color))
        hls[idx] = self._clamp(operation(hls[idx], diff / 100.0))

src/p/y/pysmac-0.6/pysmac/smacparse.py   pysmac(Download)
        #strip "-x" from the name
        param_index = int(param_name[len("x"):])
        param_value = float(param_value.strip("'"))
        x[param_index] = param_value
    return x

src/w/x/wxStocks-HEAD/wxStocks.py   wxStocks(Download)
		if column == 2:
			if "%" in value:
				value = value.strip("%")
				try:
					value = float(value)/100

src/t/s/tsudat2-HEAD/run_tsudat/run_tsudat_local.py   tsudat2(Download)
    for line in lines:
        (e, n) = line.split(',')
        e = float(e.strip())
        n = float(n.strip())
        lb_data.append((e, n))
        (hp_id, lon, lat, e, n) = line.split(',')
        hp_id = int(hp_id.strip())
        lon = float(lon.strip())
        lat = float(lat.strip())
        e = float(e.strip())

src/t/s/tsudat2-HEAD/run_tsudat/run_tsudat_amazon.py   tsudat2(Download)
    for line in lines:
        (e, n) = line.split(',')
        e = float(e.strip())
        n = float(n.strip())
        lb_data.append((e, n))
        (hp_id, lon, lat, e, n) = line.split(',')
        hp_id = int(hp_id.strip())
        lon = float(lon.strip())
        lat = float(lat.strip())
        e = float(e.strip())

src/t/s/tsudat2-HEAD/run_tsudat/nci_run_tsudat.py   tsudat2(Download)
    for line in lines:
        (e, n) = line.split(',')
        e = float(e.strip())
        n = float(n.strip())
        lb_data.append((e, n))
        (hp_id, lon, lat, e, n) = line.split(',')
        hp_id = int(hp_id.strip())
        lon = float(lon.strip())
        lat = float(lat.strip())
        e = float(e.strip())

src/t/s/tsudat2-HEAD/run_tsudat/ncios_run_tsudat.py   tsudat2(Download)
    for line in lines:
        (e, n) = line.split(',')
        e = float(e.strip())
        n = float(n.strip())
        lb_data.append((e, n))
        (hp_id, lon, lat, e, n) = line.split(',')
        hp_id = int(hp_id.strip())
        lon = float(lon.strip())
        lat = float(lat.strip())
        e = float(e.strip())

src/t/s/tsudat2-HEAD/tsudat/build_urs_boundary.py   tsudat2(Download)
    for line in lines:
        (e, n) = line.split(',')
        e = float(e.strip())
        n = float(n.strip())
        lb_data.append((e, n))
        (hp_id, lon, lat, e, n) = line.split(',')
        hp_id = int(hp_id.strip())
        lon = float(lon.strip())
        lat = float(lat.strip())
        e = float(e.strip())

src/r/o/roundup-1.5.0/roundup/cgi/actions.py   roundup(Download)
 
                prop = cl.properties[name]
                value = value.strip()
                # only add the property if it has a value
                if value:

  1 | 2 | 3 | 4 | 5  Next