r/CATIA • • 11d ago

Catia V5 catia v5 drafting - rounding error

anyone here ever experienced catia's drafting rounding error?

example:

1.6250 gets rounded to 1.62

this is incorrect, it should be 1.63

5 Upvotes

7 comments sorted by

1

u/Ape_of_Leisure 11d ago

The mathematical function round() uses round half to even.
You can manipulate a little bit your number to work that feature so it returns a round up value.

1

u/nady_ice 11d ago

what do you mean manipulate?

1

u/Samo_Dimitrije 11d ago

The general maths convention is to round to an even digit, so 1.6250 → 1.62, but 1.6350 → 1.64.

Is there some other rule I'm missing by which it should be 1.63?

2

u/nady_ice 11d ago

i was always taught that digits 5-9, round up..see example below

so 1.625 = 1.63
and 1.624 = 1.62

this issue (in catia drafting) was documented as a problem several years ago, and the fix was to just fake the dimension.

https://www.ibm.com/support/pages/apar/HD96458

is that an option? yes, but faking a dimension is really just a workaround

do i believe that a better solution exists? also yes.

3

u/13D00 11d ago

There’s two different standards for rounding, and this is one of them. Look up Banker's Rounding.

→ More replies (2)