On 15/07/13 12:07 +0200, Nicolas Évrard wrote:
> * Cédric Krier  [2013-07-15 00:20 +0200]:
> >Hi,
> >
> >I would like to submit this poll for this change:
> >
> >http://codereview.tryton.org/969002/#msg9
> >
> >   kg.convert(1000, gr) == 1
> >
> >   gr.convert(1000, kg) == 1
> >
> >
> >Which one is more logical/easy/right?
> 
> For me they are almost the same.
> 
> Would it be possible to make something like:
> 
>     (g / kg) * 1000 == 1

Looks great but it is missing the rounding so code will be:

    kg.round((g / kg) * 2000) == 2

which makes it lost his consistancy.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgprLv0L71IpC.pgp
Description: PGP signature

Reply via email to