URI: 
       tlistunspent: convert value to float - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 37034bdf7f64509998cc26959bb656d32fa416ae
   DIR parent 6bbfef51989ad9a9cac3513c6595bb7c725828dc
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Wed, 19 Aug 2015 11:10:55 +0200
       
       listunspent: convert value to float
       
       Diffstat:
         M lib/commands.py                     |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/lib/commands.py b/lib/commands.py
       t@@ -155,7 +155,9 @@ class Commands:
                """List unspent outputs. Returns the list of unspent transaction
                outputs in your wallet."""
                l = copy.deepcopy(self.wallet.get_spendable_coins(exclude_frozen = False))
       -        for i in l: i["value"] = str(Decimal(i["value"])/COIN)
       +        for i in l:
       +            v = i["value"]
       +            i["value"] = float(v)/COIN if v is not None else None
                return l
        
            @command('n')
       t@@ -462,7 +464,7 @@ class Commands:
                        'timestamp':timestamp,
                        'date':"%16s"%time_str,
                        'label':label,
       -                'value':float(format_satoshis(value)) if value is not None else None,
       +                'value':float(value)/COIN if value is not None else None,
                        'confirmations':conf}
                    )
                return out