<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — function round2 on FA]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8027&amp;type=atom" />
	<updated>2019-03-01T16:40:04Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8027</id>
		<entry>
			<title type="html"><![CDATA[Re: function round2 on FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34381#p34381" />
			<content type="html"><![CDATA[<p>I understood ternary operator, but if format_number() or round() of php resolve that, ¿Why use it? and the other question ¿Why total amount of gl_trans is not 0?, my grand total is 0.0000000005820766091346741.</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2019-03-01T16:40:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34381#p34381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: function round2 on FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34375#p34375" />
			<content type="html"><![CDATA[<p>The round2 function helps to setup our decimal precision for amounts and prices.&nbsp; So, here they are using to calculate the allowed rounding value with a limit of decimal points.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2019-03-01T05:30:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34375#p34375</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: function round2 on FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34373#p34373" />
			<content type="html"><![CDATA[<p>That is the <a href="https://www.abeautifulsite.net/how-to-use-the-php-ternary-operator">php ternary operator</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-03-01T05:14:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34373#p34373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[function round2 on FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34369#p34369" />
			<content type="html"><![CDATA[<p>Hi there,</p><p>FA have a function round2(), that function include this line &quot;$delta = ($number &lt; 0 ? -.0000000001 : .0000000001);&quot;What is the function of that?</p><p>When I have to calculate grand total on gl_trans, my total is some like that this, 0.0000000005820766091346741.&nbsp; ¿Why is not 0?</p><p>Thank you for your help...</p>]]></content>
			<author>
				<name><![CDATA[cleal]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=43428</uri>
			</author>
			<updated>2019-02-28T18:12:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34369#p34369</id>
		</entry>
</feed>
