TickerScrape/items.py
def float_to_curr_str(cur_float, symbol='$', decimals=0):
    '''Convert a float into a human readable shorthand format, using the numerize module.
        Then format the number with a currency symbol.'''
    try:
        cur_str = symbol + numerize(cur_float, decimals)
    except:
        cur_str = float("NaN")
    return cur_str
Convert a float into a human readable shorthand format, using the numerize module.
        Then format the number with a currency symbol.
Convert a float into a human readable shorthand format, using the numerize module.
Then format the number with a currency symbol.
Convert a float into a human readable shorthand format using the numerize module . Then format the number with a currency symbol .
def float_to_curr_str(cur_float, symbol='$', decimals=0):
    try:
        cur_str = symbol + numerize(cur_float, decimals)
    except:
        cur_str = float("NaN")
    return cur_str
def float_to_curr_str ( cur_float , symbol = '$' , decimals = 0 ) : try : cur_str = symbol + numerize ( cur_float , decimals ) except : cur_str = float ( "NaN" ) return cur_str
Convert a float into a human readable shorthand format, using the numerize module.
Convert a float into a human readable shorthand format using the numerize module .
'''Convert a float into a human readable shorthand format, using the numerize module.
        Then format the number with a currency symbol.'''
cur_float
symbol
decimals