You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{Describe the problem here}
"roundFactor value is rounded to a multiple of the round factor if it is a nonzero value and the applyRounding trait is set. e.g. if the roundFactor is set to 2, 42.2 would be rounded to 42 and 43.2 to 44."
If no roundFactor value is set 43.2 will round to 43. If roundFactor is set to 2 then only multiples of 2 are valid values, so 40, 42, and 44 are valid values, 43.2 is closer to 44 than 42 so the value will be rounded to 44. If you set the round factor to 10 43.2 would round to 40.
The round factor defaults to 0 and is only set in special cases where the value needs to be rounded to something besides the nearest integer
I reviewed the tests we had for this attribute and I found that we were lacking formatting tests for this option. I have filed an issue to add tests: #7462
{Describe the problem here}
"roundFactor value is rounded to a multiple of the round factor if it is a nonzero value and the applyRounding trait is set. e.g. if the roundFactor is set to 2, 42.2 would be rounded to 42 and 43.2 to 44."
Should 43.2 round to 43 instead of 44?
Found on page https://www.itwinjs.org/bis/ec/ec-format - "Format"
The text was updated successfully, but these errors were encountered: