topic Property expression are rounding to 2 decimal places??? in Document & Visualize forum
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309342#M48175
<P>I have the project calculation units set to decimal inches with three decimal places.</P><P>When i schedule the length of a beam (Beam Left), I get a LENGTH like this --> 133.247"</P><P>I created a custom property expression to convert this LENGTH to a NUMBER.</P><P>The expression looks like ---> Beam Left / 1 in</P><P>When i schedule this property I get --> 133.25</P><P>I do not want 2 decimal places i want three decimal places.</P><P> </P><P>Can i control this, or is this behavior baked into Archicad?</P><P>I can think of a work around, but what i have here should work.</P><P>Anyone have thoughts on this?</P><P>Thanks in advance!!</P>Thu, 14 Oct 2021 21:54:39 GMTgdford2021-10-14T21:54:39ZProperty expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309342#M48175
<P>I have the project calculation units set to decimal inches with three decimal places.</P><P>When i schedule the length of a beam (Beam Left), I get a LENGTH like this --> 133.247"</P><P>I created a custom property expression to convert this LENGTH to a NUMBER.</P><P>The expression looks like ---> Beam Left / 1 in</P><P>When i schedule this property I get --> 133.25</P><P>I do not want 2 decimal places i want three decimal places.</P><P> </P><P>Can i control this, or is this behavior baked into Archicad?</P><P>I can think of a work around, but what i have here should work.</P><P>Anyone have thoughts on this?</P><P>Thanks in advance!!</P>Thu, 14 Oct 2021 21:54:39 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309342#M48175gdford2021-10-14T21:54:39ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309346#M48176
<P>I believe that when you convert from a length to a number, that it no longer has a unit. So-- under working units set "numbers without units" to three decimals</P>Thu, 14 Oct 2021 23:19:20 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309346#M48176poco20132021-10-14T23:19:20ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309347#M48177
<P>ok - I have run a few more test.</P><P>When ever i convert a decimal string such as ---> "134.567" into a number</P><P>I always end up with 134.58</P><P>I am not happy.</P>Thu, 14 Oct 2021 23:44:39 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309347#M48177gdford2021-10-14T23:44:39ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309352#M48178
<P>using "STRTONUM" and setting working units "Numbers without Units" to 3 decimals I get 134.567. Are you setting units in the right place?</P>Fri, 15 Oct 2021 00:06:21 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309352#M48178poco20132021-10-15T00:06:21ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309359#M48179
<P>+1 to Gerry's response, that's the only way a property with number data type responds to change of decimals for me too. Shame because it could be set differently for different users which means differing outputs upon publishing...</P>Fri, 15 Oct 2021 00:51:48 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309359#M48179JaseBee2021-10-15T00:51:48ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309371#M48180
<P><SPAN>STRTONUM is what I was using.</SPAN></P><P><SPAN>I have not looked at what working units are set to. I never considered that working units would affect a calculation in an expression. I wouldn't expect that the working units setting would be saved as part of the view settings for a schedule, but I have never tested. For the view that opens the schedule I set the dim setting to decimal inch with 3 decimal places. And I set the calculation unit setting to decimal inches to 3 decimal places. Surely working unit settings do not affect property expression calculations.</SPAN></P><P><SPAN>It will be a bit before I can test this.</SPAN></P>Fri, 15 Oct 2021 03:14:46 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309371#M48180gdford2021-10-15T03:14:46ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309387#M48181
<P>Just had a thought, tried it and it worked.</P><P> </P><P>Although the "STRTONUM" rounds to the project unit, if you convert back to a string "STR" you can specify the number of decimals you want and it restores the unrounded number.</P><P> </P><P>Not sure if this helps though as your originally converting from a string... presumably for tallying in a schedule?</P>Fri, 15 Oct 2021 04:32:31 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309387#M48181JaseBee2021-10-15T04:32:31ZRe: Property expression are rounding to 2 decimal places???
https://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309415#M48182
<P>ok - I tested and sure enough Working Units affects Schedules!</P><P>.... and as i suspected but don't remember ever testing, Working Units Settings are NOT saved with View Settings.</P><P>I have to admit that it seems very flawed that working units should affect the accuracy of schedules! I do seem to remember that I believe working units are saved when project is saved and or project is teamworked.</P>Fri, 15 Oct 2021 09:30:19 GMThttps://community.graphisoft.com/t5/Document-Visualize-forum/Property-expression-are-rounding-to-2-decimal-places/m-p/309415#M48182gdford2021-10-15T09:30:19Z