<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.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>When I try to use fn!mod() I am getting different answers in Appian than the ans</title><link>https://community.appian.com/discussions/f/rules/6988/when-i-try-to-use-fn-mod-i-am-getting-different-answers-in-appian-than-the-ans</link><description>When I try to use fn!mod() I am getting different answers in Appian than the answers I am getting in MS Excel. For example: tointeger(fn!mod(ri!ID,2^31-1)) Where ID = &amp;quot;1234567891011&amp;quot; returns Type Number (Integer) Value 1912278207 ALTERNATIVELY: =MOD(A1</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: When I try to use fn!mod() I am getting different answers in Appian than the ans</title><link>https://community.appian.com/thread/28029?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 20:24:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f0b2672-d564-4e19-8c85-9a9d720e6b65</guid><dc:creator>PhilB</dc:creator><description>No problem! :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When I try to use fn!mod() I am getting different answers in Appian than the ans</title><link>https://community.appian.com/thread/28028?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 20:20:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc533496-6bcf-49b7-9623-4a76902b643a</guid><dc:creator>davidj578</dc:creator><description>Thank you. That worked!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When I try to use fn!mod() I am getting different answers in Appian than the ans</title><link>https://community.appian.com/thread/28026?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 20:05:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a499da56-cdff-45ad-a552-da1b90ac9969</guid><dc:creator>PhilB</dc:creator><description>I suspect your problem is down to the notation you&amp;#39;re using here: 2^31 - 1&lt;br /&gt;&lt;br /&gt;Using the power function above it seems to work fine...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: When I try to use fn!mod() I am getting different answers in Appian than the ans</title><link>https://community.appian.com/thread/28024?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2016 20:02:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:32f9319e-c138-43fb-9595-fefa3df49952</guid><dc:creator>PhilB</dc:creator><description>In your example, is ri!ID a decimal? I&amp;#39;ve just run the below on 7,11 and it gets the same result as in excel:&lt;br /&gt;&lt;br /&gt;tointeger(&lt;br /&gt;  fn!mod(&lt;br /&gt;    1234567891011.00,&lt;br /&gt;    fn!power(&lt;br /&gt;      2,&lt;br /&gt;      31&lt;br /&gt;    ) - 1&lt;br /&gt;  )&lt;br /&gt;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>