Wrong conversion for mAh to mWh
Richard Hughes
hughsient at gmail.com
Tue May 2 14:07:24 PDT 2006
On Tue, 2006-05-02 at 22:45 +0200, Johannes Berg wrote:
> On Tue, 2006-05-02 at 20:39 +0100, Richard Hughes wrote:
> > when we should be doing:
> >
> > mWh = mAh * ( mV / 1000)
>
> Since you're dealing with a computer you should probably do
>
> mWh = (mAh * mV) / 1000
>
> instead ;)
Yes of course, just getting the maths across.
So what about something like the attached?
Richard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-fix-mah.patch
Type: text/x-patch
Size: 2689 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20060502/83346b94/hal-fix-mah.bin
More information about the hal
mailing list