In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Lucas, Your GPS is putting out floating point data? If you really need a floating point comparison, you'll first need to find out what floating point format the data is stored in. If it's IEEE-754, then you're ahead of the game. Check out this page: [green] [url]http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm[/url][/green] In particular, look down the page under the heading [b]Comparing using integers[/b]. This describes a features of IEEE-754 floats which says that if you're just doing a comparison, you can treat the data as 32 bit integers and then simply compare tham. For this you'll need to find out the value of .02 as an IEEE-754 format float, and then do a 32 bit integer compare of it to your incoming data. Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=350469#m350589 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)