<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/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>Hey, Scripting Guy! Weekend Scripter: Creating a GUI for a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/02/28/hey-scripting-guy-february-28-2010.aspx</link><description>Microsoft Scripting Guy Ed Wilson here. When I showed the Scripting Wife the Get-FuelCostFunction.ps1 script from yesterday , she was less than enthused. She did not like the idea of opening up either the Windows PowerShell ISE or the Windows PowerShell</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Hey, Scripting Guy! Weekend Scripter: Creating a GUI for a Windows PowerShell Script</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2010/02/28/hey-scripting-guy-february-28-2010.aspx#3346634</link><pubDate>Sat, 24 Jul 2010 05:02:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3346634</guid><dc:creator>Al Aloba</dc:creator><description>&lt;p&gt;It looks like there is a need to convert the string to integer first for this to work. Not sure if it actually works for you but conversation seems needed per my test. So something like this ...&lt;/p&gt;
&lt;p&gt; $tb_TotalCost.text = &amp;quot;{0:n2}&amp;quot; -f (([int]$tb_miles.text / [int]$tb_MilesPerGallon.Text) `&lt;/p&gt;
&lt;p&gt; &amp;nbsp;* [int]$tb_costPerGallon.Text)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3346634" width="1" height="1"&gt;</description></item></channel></rss>