Comment 5 for bug 582243

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Yeah,
      round(res['balance'], int(config['price_accuracy'])) != 0
is the same as
      abs(res['balance']) >= 0.5 * 10**-int(config['price_accuracy'])

I used "10**-int(config['price_accuracy'])" cause it is done like that all around the code, but this might be re-factored (on all the code).