[Nut-upsdev] Use double instead of float?
Arjen de Korte
nut+devel at de-korte.org
Wed Aug 15 19:56:26 UTC 2007
Peter Selinger wrote:
> That code is stupid right now. For example, if a UPS gives a voltage
> with precision 0.1V, the driver will actually convert this to an
Yup, I noticed that too. Fixed.
> Double is better than float in any case. But some of the conversion
> functions physical<->logical should use integers for logical and
> doubles for physical units.
Probably. I'll take care of that later. It's too late now (at least here
Best regards, Arjen
More information about the Nut-upsdev