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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Return a string representation of the floating point number <credits>
formatted as BulkSMS.co.uk format their floats.

        def format_credits(credits):
    '''
    Return a string representation of the floating point number 
    formatted as BulkSMS.co.uk format their floats.
    '''

    return '%3.2f' % credits
        


src/b/u/BulkSMS-0.2a2/BulkSMS/CLI.py   BulkSMS(Download)
        if mode == 'quote':
            cost = server.quote_sms(recipients, message, **command_args)
            print 'Message cost:', BulkSMS.format_credits(cost), 'credits.'
 
        else:
 
    elif mode == 'credits':
        print 'Credits available:', BulkSMS.format_credits(server.get_credits())
        return 0