Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
float(x) -> floating point number

Convert a string or number to a floating point number, if possible.

src/k/a/karesansui-HEAD/karesansui/lib/utils.py   karesansui(Download)
 
from karesansui import KaresansuiLibException
from karesansui.lib.const import CHECK_DISK_QUOTA
from karesansui.lib.networkaddress import NetworkAddress
 
    partition = get_partition_info(target, header=False)
    available = long(partition[3][0])
    if 0 < (available * CHECK_DISK_QUOTA - float(disk_size)):
        return True
    else: