[Tinyos-help] Calculation precision (in micaz and telosb)
Rémi Villé
ville.remi at gmail.com
Mon Jun 8 03:04:12 PDT 2009
Hi,
In TinysOS there's only integer type to get calculation results. I think
because of microcontroller/CPU coercions.
But I would like to know if there is a precision during the calculation, I
mean if I do (1/4) * 100 (using brackets to obtain 0.25 before the
multiplication), will I obtain 25 or 0 ?
Is there logarithm and exponential functions in TinyOS ?
Is it possible to do ln(0.7) and obtain a good result precision ?
Thanks,
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090608/3384b034/attachment.htm
More information about the Tinyos-help
mailing list