<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9626.aspx</link><pubDate>Tue, 11 Jul 2006 02:12:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9626</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9626.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9626</wfw:commentRss><description>Hi Patricia,&lt;br /&gt;&lt;br /&gt;A little generous with those parentheses, huh?  I think your problem is that you are trying to subtract date fields.  I am pretty sure that this will almost always result in NaN, b/c IP treats date fields almost the same as strings. You will have to do calendar arithmetic in code.</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9625.aspx</link><pubDate>Mon, 10 Jul 2006 18:34:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9625</guid><dc:creator>tricia</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9625</wfw:commentRss><description>I'm in a similar kayak... in Preview Form I continue to receive NaN in the Client_Age field as soon as the application-date picker is used, and the Client_Age formula does not update when the Client_DOB is entered (yes, that check box is checked).  &lt;br /&gt;&lt;br /&gt;This simplest of simple formulas is to calculate the age based on application date less the DOB:&lt;br /&gt;(((Application_date)) - ((Client_DOB))) div 365.25&lt;br /&gt;&lt;br /&gt;I changed my default values to zero, didn't help nor did using the number function. This should be a no-brainer...&lt;br /&gt;Tricia in Canada</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9624.aspx</link><pubDate>Tue, 25 Apr 2006 17:46:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9624</guid><dc:creator>fgaona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9624.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9624</wfw:commentRss><description>Dear Abhishek my problem was more for data types, so I try to do my formulary in excel, but if I could´t I will like to send you and email with more details for help.&lt;br /&gt;Thank you and see you for now. &lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Abhishek&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;Can u give me some more details regarding what u r trying to do?&lt;br /&gt;regards,&lt;br /&gt;Abhishek&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9623.aspx</link><pubDate>Fri, 21 Apr 2006 07:09:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9623</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9623.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9623</wfw:commentRss><description>Hi,&lt;br /&gt;Can u give me some more details regarding what u r trying to do?&lt;br /&gt;regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9622.aspx</link><pubDate>Thu, 20 Apr 2006 18:29:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9622</guid><dc:creator>fgaona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9622.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9622</wfw:commentRss><description>Dear Abhishek &lt;br /&gt;your solution was close to solved my problem but if I place 0 as Default value, I dont´t know why but althought I put a formula in the data validation, this don´t recalculate the value with the formula for the field. I try to put the formula as a rule and in data validation but nothing happend&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Abhishek&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;Place 0 as the default value for the fields psalary and asalary and u wont get NaN anymore.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9621.aspx</link><pubDate>Thu, 20 Apr 2006 16:50:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9621</guid><dc:creator>fgaona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9621</wfw:commentRss><description>Thanks Abhishek&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by Abhishek&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi,&lt;br /&gt;&lt;br /&gt;Place 0 as the default value for the fields psalary and asalary and u wont get NaN anymore.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9620.aspx</link><pubDate>Thu, 20 Apr 2006 04:42:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9620</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9620.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9620</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Place 0 as the default value for the fields psalary and asalary and u wont get NaN anymore.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Abhishek</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9619.aspx</link><pubDate>Wed, 19 Apr 2006 23:20:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9619</guid><dc:creator>fgaona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9619.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9619</wfw:commentRss><description>Hi Stephanie&lt;br /&gt;Thank you very much for your help, you advice is just I needed, but now I have a second trouble, when I run (Preview) my form it sends me a red square with "NaN"(My Infopath is in Spanish).&lt;br /&gt;And the problem that Infopath sends say like:&lt;br /&gt;"The XML squema can´t validate the archive.&lt;br /&gt;&lt;br /&gt;Union doesn´t admit the value.&lt;br /&gt;It can´t analize the attribute 'snvariacion' with the value 'NaN'.&lt;br /&gt;where 'snvariacion' is the field where I want to apper the result of the operation number(psalary)-number(asalary).  &lt;br /&gt;I appreciate if you have an other wonderful tip like the other.&lt;br /&gt;&lt;br /&gt;&lt;blockquote id="quote"&gt;&lt;font size="1" face="Verdana, Arial, Helvetica" id="quote"&gt;quote:&lt;hr height="1" noshade id="quote"&gt;&lt;i&gt;Originally posted by scantwell&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Hi FG,&lt;br /&gt;&lt;br /&gt;you need to use number function for your psalary and asalary. ie. number(psalary)-number(asalary).  Be sure to insert function number before you select your fields name.&lt;br /&gt;&lt;hr height="1" noshade id="quote"&gt;&lt;/font id="quote"&gt;&lt;/blockquote id="quote"&gt;</description></item><item><title>Re: How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/9618.aspx</link><pubDate>Wed, 19 Apr 2006 19:56:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:9618</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/9618.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=9618</wfw:commentRss><description>Hi FG,&lt;br /&gt;&lt;br /&gt;you need to use number function for your psalary and asalary. ie. number(psalary)-number(asalary).  Be sure to insert function number before you select your fields name.</description></item><item><title>How to do mathematical operations</title><link>https://www.infopathdev.com:443/forums/thread/5546.aspx</link><pubDate>Wed, 19 Apr 2006 18:27:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:5546</guid><dc:creator>fgaona</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/5546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=5546</wfw:commentRss><description>Hi I need to do mathematical operations with fields like plus/minus operations, but when in the field properties-&amp;gt;value I wrote a formula like d:psalary-d:asalary. This expression is not a valid formula, so I want to know how can I do this formula. &lt;br /&gt;Thanks</description></item></channel></rss>