Thanks Andrew. I will give that try.
On Saturday, December 17, 2016 at 11:54:35 PM UTC-7, Andrew Milner wrote: > > In your example that is a correct rounding when the print format is > defined with 2 digits precision in the template - change the precision to > %.3 (or whatever is the correct format) in the template if you want three > digits .......... > > if you want to truncate without rounding then I think you will need to add > some python code to the templates ...... > http://stackoverflow.com/questions/783897/truncating-floats-in-python > > > > On Sunday, 18 December 2016 08:46:00 UTC+2, Josh Smith wrote: > >> It's a Lacrosse WS-2316 and like most stations takes observations using >> the metric system. A conversion is done somewhere, I believe it's in WeeWx >> but it could be the Lacrosse software. Either way, the problem isn't where >> the data is converted, the conversion itself is correct. It's the >> calculations with the converted data that is causing a minor issue. Using >> the $month.rain.sum tag causes the 16 significant digit sum to round up. So >> a monthly sum of 0.3251968503937174 inches is shown as 0.33 inches instead >> of 0.32 inches. This is pretty trivial overall. >> >> On Saturday, December 17, 2016 at 11:25:52 PM UTC-7, gjr80 wrote: >>> >>> Hi, >>> >>> I am a little puzzled here. All of your figures appear to be quoted in >>> inches, so I am assuming your database is using US customary units (ie >>> inches for rainfall). So wondering where the mm come into it? Also, what >>> type of station are you using? Davis? >>> >>> Gary >>> >>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
