Hello Guest it is May 24, 2019, 11:46:31 PM

Author Topic: +, -, * & /  (Read 2187 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarak

*
  •  227 227
    • View Profile
+, -, * & /
« on: July 06, 2009, 06:26:40 AM »
Does anyone else use these variabls on a DRO?
So if the DRO = 32.00 and you select the DRO and enter /2 into that field the remaining value will be 16.
It also works the same for +, and *, but for some reason I can't get the - (minus) to work.
Does anyone know if this is a bug?

Offline Hood

*
  •  25,817 25,817
  • Carnoustie, Scotland
    • View Profile
Re: +, -, * & /
« Reply #1 on: July 06, 2009, 08:45:54 AM »
Its not a bug, the reason you cant subtract in the conventional way is because you need the minus symbol so that you can enter a negative value into the DRO.
 To subtract however all you need to do is add a negative number ;)
Hood

Offline Tarak

*
  •  227 227
    • View Profile
Re: +, -, * & /
« Reply #2 on: July 07, 2009, 06:35:29 AM »
Hi Hood, Thanks for the reply.
I've noticed that adding a negative value only works for fields that have %+.4f in the format string, is it possible to use it on a DRO that has %.4f as a format string (no positive value).
I only ask because it's a DRO I use for material size, so in the DRO it has 20.0000 not +20.0000.
So it seems that unless I have the + I cannot use the negative calculation, is there a way around this?
Darc

Offline Hood

*
  •  25,817 25,817
  • Carnoustie, Scotland
    • View Profile
Re: +, -, * & /
« Reply #3 on: July 07, 2009, 07:05:00 AM »
Afraid it seems not :(
Hood