<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adjust rounding with expressions in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/Adjust-rounding-with-expressions/m-p/260487#M34103</link>
    <description>You might try:&lt;BR /&gt;
&lt;BR /&gt;
IF ( {Property:Expressions/frac} &amp;gt; 5, ROUNDUP ( {Property:Expressions/num}, 0 ), IF ( {Property:Expressions/frac} &amp;lt; 5, ROUNDDOWN ( {Property:Expressions/num}, 0 ), IF ( MOD ( {Property:Expressions/dig}, 2 ) = 0, ROUNDDOWN ( {Property:Expressions/num}, 0 ), ROUNDUP ( {Property:Expressions/num}, 0 ) ) ) )&lt;BR /&gt;
&lt;BR /&gt;
Where:&lt;BR /&gt;
&lt;BR /&gt;
num = your measurement in a raw number (no units)&lt;BR /&gt;
&lt;BR /&gt;
frac =   QUOTIENT ( MOD ( {Property:Expressions/num}, ROUNDDOWN ( {Property:Expressions/num}, 0 ) ) * 10, 1 )&lt;BR /&gt;
QUOTIENT ( MOD ( {Property:Expressions/num}, ROUNDDOWN ( {Property:Expressions/num}, 0 ) ) * 10, 1 )&lt;BR /&gt;
&lt;BR /&gt;
dig = QUOTIENT ( MOD ( {Property:Expressions/num} / 10, ROUNDDOWN ( {Property:Expressions/num} / 10, 0 ) ) * 10, 1 )&lt;BR /&gt;
QUOTIENT ( MOD ( {Property:Expressions/num} / 10, ROUNDDOWN ( {Property:Expressions/num} / 10, 0 ) ) * 10, 1 )&lt;BR /&gt;
&lt;BR /&gt;
i can't imagine that anyone would use such a complicated expression.&lt;BR /&gt;
This just demos the "left turn" Graphisoft took in developing expressions?</description>
    <pubDate>Fri, 09 Nov 2018 14:46:59 GMT</pubDate>
    <dc:creator>poco2013</dc:creator>
    <dc:date>2018-11-09T14:46:59Z</dc:date>
    <item>
      <title>Adjust rounding with expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Adjust-rounding-with-expressions/m-p/260486#M34102</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;According to Swedish standards rounding of apartment areas have to comply with the following:&lt;BR /&gt;
&lt;BR /&gt;
if the first decimal is 0-4 round down&lt;BR /&gt;
if the first decimal is 6-9 round up&lt;BR /&gt;
if the first decimal is 5 and if the number before the decimal is odd round up, example 93.5=94 m2&lt;BR /&gt;
if the first decimal is 5 and if the number before the decimal is even round down, example 94.5=94 m2&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to set this up as a rule for a property in AC22 by using expressions?&lt;BR /&gt;
&lt;BR /&gt;
Stig&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Nov 2018 09:24:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Adjust-rounding-with-expressions/m-p/260486#M34102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-09T09:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adjust rounding with expressions</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Adjust-rounding-with-expressions/m-p/260487#M34103</link>
      <description>You might try:&lt;BR /&gt;
&lt;BR /&gt;
IF ( {Property:Expressions/frac} &amp;gt; 5, ROUNDUP ( {Property:Expressions/num}, 0 ), IF ( {Property:Expressions/frac} &amp;lt; 5, ROUNDDOWN ( {Property:Expressions/num}, 0 ), IF ( MOD ( {Property:Expressions/dig}, 2 ) = 0, ROUNDDOWN ( {Property:Expressions/num}, 0 ), ROUNDUP ( {Property:Expressions/num}, 0 ) ) ) )&lt;BR /&gt;
&lt;BR /&gt;
Where:&lt;BR /&gt;
&lt;BR /&gt;
num = your measurement in a raw number (no units)&lt;BR /&gt;
&lt;BR /&gt;
frac =   QUOTIENT ( MOD ( {Property:Expressions/num}, ROUNDDOWN ( {Property:Expressions/num}, 0 ) ) * 10, 1 )&lt;BR /&gt;
QUOTIENT ( MOD ( {Property:Expressions/num}, ROUNDDOWN ( {Property:Expressions/num}, 0 ) ) * 10, 1 )&lt;BR /&gt;
&lt;BR /&gt;
dig = QUOTIENT ( MOD ( {Property:Expressions/num} / 10, ROUNDDOWN ( {Property:Expressions/num} / 10, 0 ) ) * 10, 1 )&lt;BR /&gt;
QUOTIENT ( MOD ( {Property:Expressions/num} / 10, ROUNDDOWN ( {Property:Expressions/num} / 10, 0 ) ) * 10, 1 )&lt;BR /&gt;
&lt;BR /&gt;
i can't imagine that anyone would use such a complicated expression.&lt;BR /&gt;
This just demos the "left turn" Graphisoft took in developing expressions?</description>
      <pubDate>Fri, 09 Nov 2018 14:46:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Adjust-rounding-with-expressions/m-p/260487#M34103</guid>
      <dc:creator>poco2013</dc:creator>
      <dc:date>2018-11-09T14:46:59Z</dc:date>
    </item>
  </channel>
</rss>

