Author Topic: 1.0 RC3 Entering a dimension mathimatically only works on whole numbers.--Bug?  (Read 833 times)

Offline ChrisCTS

  • Ewok
  • *
  • Posts: 3
    • View Profile
I drew a rectangle, and wanted to center it by dividing the width by 2. this works with whole numbers, But
if I try typing 138.2/2  then  NaN is the result, but 138/2 works fine. the same happens for the width or height dimension as well as setting the lower left values. I had never noticed this before, Earlier version ( But I'm not sure I have used a fractional number before)
Is this by design or is it a bug?

Offline dh42

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 6007
    • View Profile
    • Cambam V1.0 French Doc
Hello

Same on CB 0.98

I think that the ability to use the "/" is only to write fractional inches values like 1/2, 3/8, etc ... and not to do maths in the textbox.

If you try something like 2*10, it do not work too, so no math allowed in fact ... not a bug.

++
David

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4378
    • View Profile
It looks like it works with fractions only and 138.2/2 is not a fraction.
Made in England

Offline gmoo

  • Storm Trooper
  • ***
  • Posts: 152
  • Jam it !
    • View Profile
Did you also try deviding by 2.0 ?
best regards

Bernhard

Offline EddyCurrent

  • CNC Jedi
  • *****
  • Posts: 4378
    • View Profile
That doesn't work either because fractions should contain integers only.
Made in England

Offline Garyhlucas

  • CNC Jedi
  • *****
  • Posts: 1366
    • View Profile
Math within a data entry field is a wonderful thing that I use all the time in SolidWorks.  Visual Cadd had it and Rhino I think has it now.
Gary H. Lucas

Have you read my blog?
 http://a-little-business.blogspot.com/

Offline gmoo

  • Storm Trooper
  • ***
  • Posts: 152
  • Jam it !
    • View Profile
QCAD also. Like it very much !
best regards

Bernhard