#468 2.0.3: showing too much fractional digits in dimensions

2.0.4
closed-fixed
None
5
2014-06-12
2014-05-07
dimas000
No

after update to 2.0.3 (and also to 682e40674f) dimensions function now shows too much digits in all the numbers. if i set in Edit - Current Drawing Preferences - Units to show 4 digits after dot, it shows "80.0000" instead of simply "80", or "25.4000" instead of "25.4", same with angular dimensions. before 2.0.3 that was fine

Discussion

  • Dongxu Li

    Dongxu Li - 2014-05-14

    I feel the current behavior is more reasonable,

    specifying 4 digits after dot

    1.0000
    or
    1

    maybe:
    1 and 1.0000 \plus\minus 0.0001

    What's the general rule in CAD?

     
    •  dimas000

      dimas000 - 2014-05-15

      by ± you mean tolerance? i think it could be an optional field in a dimension's
      options toolbar - when set, let if automatically show 1.000±0.001 or 1±0.001
      as for using 1.000 always instead of 1 - those lables definetely take too much
      space, littering the drawing. when one is building things bigger than 1m, who
      needs these .0000...?

       
  • Dongxu Li

    Dongxu Li - 2014-05-15
    • status: open --> open-accepted
    • Group: master branch --> 2.0.4
     
  • Dongxu Li

    Dongxu Li - 2014-05-16

    fixed in master branch:

    80fe6e3..9ec6781 master -> master

     
    •  dimas000

      dimas000 - 2014-05-16

      ok, thanks!
      btw, regex substitution would look much nicer in such cases. smth like:
      s/.?0+$//
      and no need for all those "if blah-blah-blah...."

       
  • Dongxu Li

    Dongxu Li - 2014-05-16

    done.

    I leave the old code in comment, in case we want to keep the engine Qt free in LibreCAD-V3

    9ec6781..d31c9b3

    Thanks for the regex idea

     
  • Dongxu Li

    Dongxu Li - 2014-06-12
    • status: open-accepted --> closed-fixed
    • assigned_to: Dongxu Li
     

Log in to post a comment.