<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: using Rule to convert minutes into tenth of minutes</title><link>https://www.infopathdev.com:443/forums/thread/59656.aspx</link><pubDate>Tue, 05 Oct 2010 14:28:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59656</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59656.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59656</wfw:commentRss><description>&lt;p&gt;I think it could be confusing for users to have the time change right from under them in one field.&amp;nbsp; Perhaps it would be easier and less confusing to have the time with tenths of minutes in a separate field and show them both, making the calculated one read-only?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Your description of the problem is rather confusing.&amp;nbsp; You want to conver from minutes to tenths of &lt;em&gt;hours&lt;/em&gt;, right?&amp;nbsp; And in your example, 12.44 is 12 hours, 44 minutes, and 12.8 is 12.8 hours, right?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If my understanding of the above is correct, you can calculate the value you want using this formula, assuming that users use . (dot) as the separator character:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ceiling((substring-before(&lt;strong&gt;&lt;u&gt;time&lt;/u&gt;&lt;/strong&gt;, &amp;#39;.&amp;#39;) + substring-after(&lt;strong&gt;&lt;u&gt;time&lt;/u&gt;&lt;/strong&gt;, &amp;#39;.&amp;#39;) div 60) * 10) div 10&lt;/p&gt;&lt;/blockquote&gt;</description></item><item><title>Re: using Rule to convert minutes into tenth of minutes</title><link>https://www.infopathdev.com:443/forums/thread/59646.aspx</link><pubDate>Tue, 05 Oct 2010 12:29:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59646</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59646.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=59646</wfw:commentRss><description>Add two fields: one for minutes (int) and one for the calculation (decimal). Add a default value for the calculated field (minutes/60). Then add conditional formatting such that the calculated field is hidden when the minutes is blank, and the minutes is hidden after the user enters a value. You have two fields, but display only one at a time.&lt;br /&gt;</description></item><item><title>using Rule to convert minutes into tenth of minutes</title><link>https://www.infopathdev.com:443/forums/thread/58839.aspx</link><pubDate>Thu, 09 Sep 2010 19:10:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:58839</guid><dc:creator>yuipcheng</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/58839.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=58839</wfw:commentRss><description>&lt;p&gt;I have a from that lets user to enter hours and quarter minutes, but I need to convert them into tenth of minutes and put the new number back to the textbox.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am new to infopath but not sure how to use Rules to do that or if it&amp;#39;s possible at all.&lt;/p&gt;
&lt;p&gt;Basically, if user enters 0.15, I convert the input to 0.3&amp;nbsp;or if user enters 12.44, I convert it to 12.8.&lt;/p&gt;
&lt;p&gt;Tenths&amp;nbsp;&amp;nbsp; Minutes&lt;br /&gt;0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1-6&lt;br /&gt;0.2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7-12&lt;br /&gt;0.3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 13-18&lt;br /&gt;0.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 19-24&lt;br /&gt;0.5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25-30&lt;br /&gt;0.6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 31-36&lt;br /&gt;0.7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 37-42&lt;br /&gt;0.8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 43-48&lt;br /&gt;0.9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 49-54&lt;br /&gt;1.0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 55-60&lt;/p&gt;</description></item></channel></rss>