[Tinyos-help] float variable

Yong, Chee Yeew Chee-Yeew.Yong at thalesgroup.com
Mon Nov 8 01:03:11 PST 2010


How do you know the output's '0'?

-----Original Message-----
From: tinyos-help-bounces at millennium.berkeley.edu
[mailto:tinyos-help-bounces at millennium.berkeley.edu]On Behalf Of lucky eyes
Sent: 07 November 2010 13:45
To: tinyos help
Subject: [Tinyos-help] float variable


 
Hi,
 
I have initialzed x with float and doing increment of 0.1.When value of x
reaches to 1.0 there is output 0.
I dont know how to correct it. 
 
Best Wishes
 
AQAnsari



Please consider the environment before printing a hard copy of this 
e-mail. 
 
The information contained in this e-mail is confidential. It is intended 
only for the stated addressee(s) and access to it by any other person is 
unauthorised. If you are not an addressee, you must not disclose, copy, 
circulate or in any other way use or rely on the information contained in 
this e-mail. Such unauthorised use may be unlawful. If you have received 
this e-mail in error, please inform us immediately on +44 (0)118 986 8601 
and delete it and all copies from your system. 
 
Thales Research and Technology (UK) Limited. A company registered in 
England and Wales. Registered Office: 2 Dashwood Lang Road, The Bourne 
Business Park, Addlestone, Weybridge, Surrey KT15 2NX. Registered Number: 
774298 
 
Thales UK Limited. A company registered in England and Wales. Registered 
Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, 
Weybridge, Surrey KT15 2NX. Registered Number: 868273 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20101108/d0331bb9/attachment-0001.htm 


More information about the Tinyos-help mailing list