<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.signature.net/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fdecihex</id>
		<title>IB Statements/decihex - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.signature.net/index.php?action=history&amp;feed=atom&amp;title=IB_Statements%2Fdecihex"/>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/decihex&amp;action=history"/>
		<updated>2026-05-13T01:54:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://wiki.signature.net/index.php?title=IB_Statements/decihex&amp;diff=425&amp;oldid=prev</id>
		<title>Badge: New page: '''DECIHEX function'''   '''Syntax:'''  DECIHEX(numeric-argument)    '''Discussion:'''  The DECIHEX function converts the numeric-argument (up to length.precision of 10.0) into a 4-byte In...</title>
		<link rel="alternate" type="text/html" href="http://wiki.signature.net/index.php?title=IB_Statements/decihex&amp;diff=425&amp;oldid=prev"/>
				<updated>2009-05-22T10:55:58Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;#39;&amp;#39;&amp;#39;DECIHEX function&amp;#39;&amp;#39;&amp;#39;   &amp;#39;&amp;#39;&amp;#39;Syntax:&amp;#39;&amp;#39;&amp;#39;  DECIHEX(numeric-argument)    &amp;#39;&amp;#39;&amp;#39;Discussion:&amp;#39;&amp;#39;&amp;#39;  The DECIHEX function converts the numeric-argument (up to length.precision of 10.0) into a 4-byte In...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''DECIHEX function''' &lt;br /&gt;
&lt;br /&gt;
'''Syntax:'''  DECIHEX(numeric-argument)  &lt;br /&gt;
&lt;br /&gt;
'''Discussion:'''  The DECIHEX function converts the numeric-argument (up to length.precision of 10.0) into a 4-byte Intel hex formatted string. &lt;br /&gt;
&lt;br /&gt;
'''Note:''' Intel-based systems store numeric data in &amp;quot;Intel hex format.&amp;quot; Windows passes data in this format to Comet and expects the same in return. This function, along with the IHEXDEC function, provide a streamlined way to convert formats. &lt;br /&gt;
&lt;br /&gt;
For example, consider the numeric value 6636321. The DECIHEX function converts this value to the equivalent Intel format, which is &amp;quot;@21436500@&amp;quot;. &lt;br /&gt;
 &lt;br /&gt;
'''Example:'''&lt;br /&gt;
  Set TestHex$ = &amp;quot;@21436500@&amp;quot;  ! 0x00654321&lt;br /&gt;
  Set TestDec = 6636321&lt;br /&gt;
  !&lt;br /&gt;
  Length 4 &amp;amp; Local Hex$&lt;br /&gt;
  Length 10.0 &amp;amp; Local Dec&lt;br /&gt;
  !&lt;br /&gt;
  Print (Cs);(Et)&lt;br /&gt;
  !&lt;br /&gt;
  Hex$ = TestHex$&lt;br /&gt;
  Dec = IHexDec(Hex$)&lt;br /&gt;
  If (Dec EQ TestDec)&lt;br /&gt;
  Print &amp;quot;IHexDec succeeded&amp;quot;&lt;br /&gt;
  Else&lt;br /&gt;
  Print &amp;quot;IHexDec failed&amp;quot;&lt;br /&gt;
  EndIf&lt;br /&gt;
  !&lt;br /&gt;
  Hex$ = DecIHex(Dec)&lt;br /&gt;
  If (Hex$ EQ TestHex$)&lt;br /&gt;
  Print &amp;quot;DecIHex succeeded&amp;quot;&lt;br /&gt;
  Else&lt;br /&gt;
  Print &amp;quot;DecIHex failed&amp;quot;&lt;br /&gt;
  EndIf&lt;br /&gt;
  !&lt;br /&gt;
  Wait&lt;br /&gt;
  Stop&lt;/div&gt;</summary>
		<author><name>Badge</name></author>	</entry>

	</feed>