<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Formatting &#x27;converted&#x27; point values]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">If I have a point value I get from the Mango device, for example:</p>
<p dir="auto"><code>&lt;ma-point-value point-xid="{{ Objects.BattCharge }}"&gt;&lt;/ma-point-value&gt;</code> it returns <code>22.5 %</code></p>
<p dir="auto">When I add a <code>display-type=converted</code> such as:</p>
<p dir="auto"><code>&lt;ma-point-value display-type="converted" point-xid="{{ Objects.BattCharge }}"&gt;&lt;/ma-point-value&gt;</code> the value often comes back as <code>22.500000001</code> - is there any way to format the number that comes back via this point?</p>
<p dir="auto">The desired result is <code>22.5%</code> (without the space, and only to one decimal place).</p>
<p dir="auto">Thanks</p>
<p dir="auto">Richard</p>
]]></description><link>https://forum.mango-os.com/topic/4169/formatting-converted-point-values</link><generator>RSS for Node</generator><lastBuildDate>Sun, 07 Jun 2026 01:52:51 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/4169.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Apr 2019 04:52:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Wed, 24 Apr 2019 16:39:16 GMT]]></title><description><![CDATA[<p dir="auto">@richard-mortimer said in <a href="/post/21939">Formatting 'converted' point values</a>:</p>
<blockquote>
<p dir="auto">I'd be curious as to the other reasons, to see whether there would be valid reasons to suggest a change to this?</p>
</blockquote>
<p dir="auto">If you change the suffix as I suggested you will see the change anywhere that the point value is displayed, i.e. on any dashboard (without explicitly formatting it), on any report, on any email, on any built in Mango page such as Watchlists etc.</p>
<p dir="auto">You also get the benefits that  <code>&lt;ma-point-value&gt;</code> provides such as the popup Craig mentioned, the flash on change, the unreliable indicator, the event indicator and the red cross hatching when the data point is disabled etc.</p>
]]></description><link>https://forum.mango-os.com/post/21946</link><guid isPermaLink="true">https://forum.mango-os.com/post/21946</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Wed, 24 Apr 2019 16:39:16 GMT</pubDate></item><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Wed, 24 Apr 2019 09:15:33 GMT]]></title><description><![CDATA[<p dir="auto">I really like the pop up of the <code>&lt;ma-point-value point="myPoint1" enable-popup="up"&gt;</code> when enable pop is used.Not sure if you have tried it out yet.</p>
]]></description><link>https://forum.mango-os.com/post/21942</link><guid isPermaLink="true">https://forum.mango-os.com/post/21942</guid><dc:creator><![CDATA[CraigWeb]]></dc:creator><pubDate>Wed, 24 Apr 2019 09:15:33 GMT</pubDate></item><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Wed, 24 Apr 2019 02:48:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jared-wiltshire" aria-label="Profile: jared-wiltshire">@<bdi>jared-wiltshire</bdi></a> said in <a href="/post/21933">Formatting 'converted' point values</a>:</p>
<blockquote>
<p dir="auto">@richard-mortimer said in <a href="/post/21928">Formatting 'converted' point values</a>:</p>
<blockquote>
<p dir="auto">The only down side seems to be that the flash-on-change="true" directive no longer works ... :(</p>
</blockquote>
<p dir="auto">Just one of quite a few reasons I recommended a different method.</p>
</blockquote>
<p dir="auto">There are quite a number of people that work on our systems, with varying degrees of experience and knowledge. Whilst the <code>flash-on-change</code> might not be a valid reason to modify the final output, I'd be curious as to the other reasons, to see whether there would be valid reasons to suggest a change to this?</p>
<p dir="auto">Thanks</p>
<p dir="auto">Richard</p>
]]></description><link>https://forum.mango-os.com/post/21939</link><guid isPermaLink="true">https://forum.mango-os.com/post/21939</guid><dc:creator><![CDATA[richard.mortimer]]></dc:creator><pubDate>Wed, 24 Apr 2019 02:48:31 GMT</pubDate></item><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Tue, 23 Apr 2019 15:53:20 GMT]]></title><description><![CDATA[<p dir="auto">@richard-mortimer said in <a href="/post/21928">Formatting 'converted' point values</a>:</p>
<blockquote>
<p dir="auto">The only down side seems to be that the flash-on-change="true" directive no longer works ... :(</p>
</blockquote>
<p dir="auto">Just one of quite a few reasons I recommended a different method.</p>
]]></description><link>https://forum.mango-os.com/post/21933</link><guid isPermaLink="true">https://forum.mango-os.com/post/21933</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Tue, 23 Apr 2019 15:53:20 GMT</pubDate></item><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Tue, 23 Apr 2019 04:10:27 GMT]]></title><description><![CDATA[<p dir="auto">The only down side seems to be that the <code>flash-on-change="true" </code> directive no longer works ... :(</p>
]]></description><link>https://forum.mango-os.com/post/21928</link><guid isPermaLink="true">https://forum.mango-os.com/post/21928</guid><dc:creator><![CDATA[richard.mortimer]]></dc:creator><pubDate>Tue, 23 Apr 2019 04:10:27 GMT</pubDate></item><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Tue, 23 Apr 2019 02:00:47 GMT]]></title><description><![CDATA[<p dir="auto">Found a different (better?) way to do this; find your data point initially and assign it to a variable:</p>
<pre><code>&lt;ma-get-point-value point-xid="{{ Objects.BattTemp }}" point="DispBattTemp"&gt;&lt;/ma-get-point-value&gt;
</code></pre>
<p dir="auto">then further down the page, use this array to grab the value, then filter it via the AngularJS built in <code>number</code> thus:</p>
<pre><code>&lt;span ng-if="showBattTemp"&gt; ({{ DispBattTemp.value | number:1 }}&amp;deg;C)&lt;/span&gt;
</code></pre>
<p dir="auto">Outputs 19°C as required. (Sorry, changed the data point from the initial example, but the theory is the same)</p>
<p dir="auto">Cheers</p>
<p dir="auto">Richard</p>
]]></description><link>https://forum.mango-os.com/post/21924</link><guid isPermaLink="true">https://forum.mango-os.com/post/21924</guid><dc:creator><![CDATA[richard.mortimer]]></dc:creator><pubDate>Tue, 23 Apr 2019 02:00:47 GMT</pubDate></item><item><title><![CDATA[Reply to Formatting &#x27;converted&#x27; point values on Thu, 18 Apr 2019 16:33:08 GMT]]></title><description><![CDATA[<p dir="auto">Setting <code>display-type="converted"</code> will make it display the raw numeric value as you discovered. You want to use the rendered value which is controlled by the data point's text renderer. When you have the analog text renderer selected and "Use unit symbol as suffix" is set it inserts a space between the number and the unit symbol. If you want to get rid of this space, uncheck "Use unit symbol as suffix" and set the suffix manually.</p>
]]></description><link>https://forum.mango-os.com/post/21899</link><guid isPermaLink="true">https://forum.mango-os.com/post/21899</guid><dc:creator><![CDATA[Jared Wiltshire]]></dc:creator><pubDate>Thu, 18 Apr 2019 16:33:08 GMT</pubDate></item></channel></rss>