gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] Re: BMI Calc


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] Re: BMI Calc
Date: Tue, 22 Apr 2003 10:08:18 +0200
User-agent: Mutt/1.3.22.1i

> *** There is a little quirk in the calculation that is result of rounding.
> if self.height==168 and self.mass==86
>       self.txtbmi = 30.5
>       self.newbmi = 30   <-- LOOKS WRONG (when compared w/ self.txtbmi)
> WHY?
>       true BMI = 30.470521541950113 <-- What appears to be
>                                         an error is a result of rounding!
> There are a few comments regarding this in the code.
Well, if you are concerned about this do

round(self.newbmi * 10) / 10

But I'd like to suggest that the difference between 30 and
30.5 is clinically meaningless.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]