<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Return value being &#34;trimmed&#34;</title>
		<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed</link>
		<description>Gravity Support Forums Topic: Return value being &quot;trimmed&quot;</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 14:15:51 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/return-value-being-trimmed" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Return value being &#34;trimmed&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed#post-67901</link>
			<pubDate>Wed, 25 Jul 2012 12:43:30 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67901@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Good call on stripping out the commas :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Schrock on "Return value being &#34;trimmed&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed#post-67897</link>
			<pubDate>Wed, 25 Jul 2012 12:40:30 +0000</pubDate>
			<dc:creator>Schrock</dc:creator>
			<guid isPermaLink="false">67897@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You sir are deserving of an ice cold beverage - that worked...thanks!!  You'll also be glad to know that barring any unforeseen issues, that will be my last support request until the next project :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Return value being &#34;trimmed&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed#post-67851</link>
			<pubDate>Wed, 25 Jul 2012 09:39:57 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">67851@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yeah, have a look at the following I did:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$home_worth = intval(str_replace(&#38;quot;,&#38;quot;,&#38;quot;&#38;quot;,&#38;quot;100,000&#38;quot;));
$home_owed  = intval(str_replace(&#38;quot;,&#38;quot;,&#38;quot;&#38;quot;,&#38;quot;10,000&#38;quot;));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I did a string replace to strip out any commas because that seemed to mess things up. Can you try something similar and let me know if it fixes the issue?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Schrock on "Return value being &#34;trimmed&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed#post-67848</link>
			<pubDate>Wed, 25 Jul 2012 09:03:15 +0000</pubDate>
			<dc:creator>Schrock</dc:creator>
			<guid isPermaLink="false">67848@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks!  I gave casting a shot and it didn't work.  This one's driving me nutz...any other suggestions?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Return value being &#34;trimmed&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed#post-67792</link>
			<pubDate>Tue, 24 Jul 2012 20:20:47 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">67792@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Assuming the variables are all strings, you might want to try casting input_64 and input_65 as integers before performing math on them.&#60;/p&#62;
&#60;p&#62;How about trying this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
//equity valuation

    $home_worth = (int)$_POST[&#38;quot;input_64&#38;quot;];
    $home_owed  = (int)$_POST[&#38;quot;input_65&#38;quot;];

    $equity     = $home_worth - $home_owed;

    $_POST[&#38;quot;input_69&#38;quot;] = $equity;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Schrock on "Return value being &#34;trimmed&#34;"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/return-value-being-trimmed#post-67773</link>
			<pubDate>Tue, 24 Jul 2012 16:45:49 +0000</pubDate>
			<dc:creator>Schrock</dc:creator>
			<guid isPermaLink="false">67773@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm adding two number fields together and then passing the total to a hidden field.  The problem is if I subtract 10,000 from 100,000 the value returned is 90.  However, if I subtract 400,100 from 456,834 it returns the correct value of 56,734.&#60;/p&#62;
&#60;p&#62;Code is as follows:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//equity valuation

    $home_worth = $_POST[&#38;quot;input_64&#38;quot;];
    $home_owed  = $_POST[&#38;quot;input_65&#38;quot;];

    $equity     = $home_worth - $home_owed;

    $_POST[&#38;quot;input_69&#38;quot;] = $equity;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I know this has more to do with php than gravity forms but a hand in solving this would be appreciated.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
