In SX Microcontrollers, SX/B Compiler and SX-Key Tool, lboucher wrote: Thanks for the info. Yes my GPS unit is putting out floats. (Trying to control a 10,000 dollar GPS unit with 50 bucks worth of parts.) Would this be easier with a propeller or stamp? [quote="PJMonty"] 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: [url=http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm]www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm[/url] 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 [/quote] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=350469#m350634 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)