<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Converting numeric variables to RemoteXY "text" strings]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1779&amp;type=atom" />
	<updated>2024-03-22T17:31:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1779</id>
		<entry>
			<title type="html"><![CDATA[Re: Converting numeric variables to RemoteXY "text" strings]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5460#p5460" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>remotexy wrote:</cite><blockquote><p>We talked about some conversion functions here <a target="_blank" href="https://remotexy.com/en/help/indications/text/">https://remotexy.com/en/help/indications/text/</a></p></blockquote></div><p>Thanks for that link, I was looking in the wrong place for it...</p><div class="quotebox"><cite>remotexy wrote:</cite><blockquote><p>We also plan to add the ability to display different types of data to the <strong>Text string</strong> element</p></blockquote></div><p>I believe that a simpler modification would be an option to make a numeric EDIT field non-editable.&nbsp; Then it becomes a convenient numeric display field. Also the option to remove the border would be good...</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2024-03-22T17:31:30Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5460#p5460</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Converting numeric variables to RemoteXY "text" strings]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5454#p5454" />
			<content type="html"><![CDATA[<p>We talked about some conversion functions here <a target="_blank" href="https://remotexy.com/en/help/indications/text/">https://remotexy.com/en/help/indications/text/</a><br />We also plan to add the ability to display different types of data to the <strong>Text string</strong> element</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2024-03-22T07:20:34Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5454#p5454</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Converting numeric variables to RemoteXY "text" strings]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5451#p5451" />
			<content type="html"><![CDATA[<p>Ok, so I&#039;m getting somewhere - </p><p>The &quot;totalmins&quot; variable, declared as an &quot;unsigned long&quot; is easily converted to the RemoteXY &quot;char&quot; data-type with...</p><div class="codebox"><pre><code>dtostrf(totalmins, 4, 0, RemoteXY.totalmins);</code></pre></div><p>But why do I have to declare totalmins as an &quot;unsigned long&quot; when the variable will be constrained to 0-999 ?</p><p>Are there functions to convert uint16_t or uint8_t to a string ?</p><p>Anyone point me to a decent tutorial covering all of this ?</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2024-03-21T22:05:07Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5451#p5451</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Converting numeric variables to RemoteXY "text" strings]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=5446#p5446" />
			<content type="html"><![CDATA[<p>Got to admit I find this area of programming a bit of a minefield...</p><p>I have some internal numeric variables, both integer and float, that I need to convert into the char arrays used by the RemoteXY interface and GUI.</p><p>I know it should be easy enough to do, but getting so much confusing information on the web, it&#039;s mashing my brain....</p><p>Example of my RemoteXY declarations, which should enable me to convert any of the other numbers, are:-</p><p>char totalmins[9]; : This needs to be converted from my internal variable&nbsp; uint16_t&nbsp; &nbsp;totalmins;<br />char cost[6]; :&nbsp; This to be converted from float&nbsp; cost; and to display&nbsp; ###.## format.</p><p>If someone could explain how to do this, it will bump me up the learning curve, and I&#039;d be extremely grateful....</p><p>TIA</p>]]></content>
			<author>
				<name><![CDATA[Daba]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=630</uri>
			</author>
			<updated>2024-03-21T13:07:48Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=5446#p5446</id>
		</entry>
</feed>
