[Tinyos-help] Calculation precision (in micaz and telosb)
Rémi Villé
ville.remi at gmail.com
Mon Jun 8 03:12:57 PDT 2009
2009/6/8 Rémi Villé <ville.remi at gmail.com>
> 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 ?
>
Sorry, I would say exp(0.7)
>
> Thanks,
>
> Rémi
>
> PS : sorry, I forgot [Tinyos-help] in the subject msg again
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090608/fb183b63/attachment.htm
More information about the Tinyos-help
mailing list