Re: [Tinyos-help] Wrong printed value

2011-08-19 Thread Eric Decker
On Fri, Aug 19, 2011 at 11:32 AM, Geo Gkolfin geo198...@gmail.com wrote: Thanks for your answer! Actually it almost worked! %lu prints 3354000128 instead of 3354000112. %lx prints c7e9fb00 which is 3354000128 hex. This can drive you crazy! Any ideas please? Without explicitly stepping

Re: [Tinyos-help] Wrong printed value

2011-08-19 Thread Geo Gkolfin
There are not so many steps to be made. The functionality is described in my first mail. On Fri, Aug 19, 2011 at 9:38 PM, Eric Decker cire...@gmail.com wrote: On Fri, Aug 19, 2011 at 11:32 AM, Geo Gkolfin geo198...@gmail.com wrote: Thanks for your answer! Actually it almost worked! %lu

Re: [Tinyos-help] Wrong printed value

2011-08-19 Thread Michael Schippling
ahI think the number of significant digits for a float is 24 bits so the cast may be rounding. See: http://en.wikipedia.org/wiki/Floating_point#Rounding_modes MS Geo Gkolfin wrote: There are not so many steps to be made. The functionality is described in my first mail. On Fri,