<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>system.math.round doesn't work on PBA</title><link>https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/35137/system-math-round-doesn-t-work-on-pba</link><description>I was trying to round the decimal number to only 1 in the PBA Text annotation on area but it seems the syntax doesn't work for me
 
 
did i missed something?
 
 
please help..
 
 
jun</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Re: system.math.round doesn't work on PBA</title><link>https://communities.bentley.com/thread/77839?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2009 23:17:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:c116aa27-1324-48f6-8d15-ada959d3eee7</guid><dc:creator>Jeff Bielefeld</dc:creator><description>&lt;p&gt;
...in your schema,&amp;nbsp;just replace the&amp;nbsp;system.math.round() function references with the equivalent xfm.round() function as necessary. 
&lt;/p&gt;
&lt;p&gt;
Regards, 
&lt;/p&gt;
&lt;p&gt;
Jeff Bielefeld [Bentley] 
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: system.math.round doesn't work on PBA</title><link>https://communities.bentley.com/thread/77644?ContentTypeID=1</link><pubDate>Sat, 15 Aug 2009 06:56:19 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:b25e8765-225a-47b1-bbfa-a4de89d41bea</guid><dc:creator>aarrjeeli_001</dc:creator><description>&lt;BLOCKQUOTE&gt;&lt;div&gt; 
&lt;p&gt;
...if using system.math.round function, please be aware of the following &lt;a href="ftp://ftp.bentley.com/pub/help/bentley_map/08110549en/docs/html/known_issues.htm"&gt;Known Issues&lt;/a&gt; from recent releases... 
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;&amp;quot;Workspaces with schemas containing references to the System.Math.Round C-Expression will encounter unexpected &amp;quot;Expression handler error: -1&amp;quot; error messages at runtime. All references to the System.Math.Round C-Expression should be updated to use the new XFM.Round C-Expression as a temporary workaround.&amp;quot;&lt;/em&gt; 
&lt;/p&gt;
&lt;p&gt;
...so using a PBA expression such as... 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;p&gt;
	Area=[xfm.round([MyFeature.Area],1)] 
	&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;/div&gt;&lt;/BLOCKQUOTE&gt;
&lt;/p&gt;
&lt;p&gt;
Hi Jeff,
&lt;/p&gt;
&lt;p&gt;
You are very correct with&amp;nbsp;this example, what references do i need to update and how?
&lt;/p&gt;
&lt;p&gt;
thanks
&lt;/p&gt;
&lt;p&gt;
jun
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: system.math.round doesn't work on PBA</title><link>https://communities.bentley.com/thread/77607?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2009 22:12:17 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:23646914-9deb-4082-92f3-ecd1e2020aa7</guid><dc:creator>Jeff Bielefeld</dc:creator><description>&lt;p&gt;
...if using system.math.round function, please be aware of the following &lt;a href="ftp://ftp.bentley.com/pub/help/bentley_map/08110549en/docs/html/known_issues.htm"&gt;Known Issues&lt;/a&gt; from recent releases...
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;&amp;quot;Workspaces with schemas containing references to the System.Math.Round C-Expression will encounter unexpected &amp;quot;Expression handler error: -1&amp;quot; error messages at runtime. All references to the System.Math.Round C-Expression should be updated to use the new XFM.Round C-Expression as a temporary workaround.&amp;quot;&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
...so using a PBA expression such as...
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;p&gt;
	Area=[xfm.round([MyFeature.Area],1)]
	&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
...should provide the desired rounding.
&lt;/p&gt;
&lt;p&gt;
Regards,
&lt;/p&gt;
&lt;p&gt;
Jeff Bielefeld [Bentley]
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: system.math.round doesn't work on PBA</title><link>https://communities.bentley.com/thread/77540?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2009 16:04:31 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:a366b43c-9f6a-4a24-a73d-6e5643528c01</guid><dc:creator>Jerry Walter - Bentley</dc:creator><description>&lt;p&gt;
Jun;
&lt;/p&gt;
&lt;p&gt;
Can you please provide an example of how you are doing this ???
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
Thanks !
&lt;/p&gt;
&lt;p&gt;
Jerry
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>