Re: [Emc-users] trimming zeros in debug statement

2016-02-06 Thread Cecil Thomas
Thanks Sebastian. Obviously it's a small thing pretty much cosmetic but it was worth a try. Thanks for saving me another couple of hours beating a dead horse. Cecil At 02:15 PM 2/6/2016, you wrote: > > > > > > Is there a simple way to make the debug statement drop the trailing > > zeros when

[Emc-users] trimming zeros in debug statement

2016-02-06 Thread Cecil Thomas
I have a debug statement in my gear cutting program to tell me what the program is about to do before I let it start cutting. (sometimes it can be a surprise) Some of the variables are obviously integers. For instance the number of passes or the number of teeth. I would like to be able to

Re: [Emc-users] trimming zeros in debug statement

2016-02-06 Thread Sebastian Kuzminsky
On 02/06/2016 11:55 AM, Cecil Thomas wrote: > M0 (DEBUG, CUTTING #82 TEETH AT #1 DP #85 passes per tooth cut depth > #7 on blank with OD #21) > > displays as : > > CUTTING 64.00 TEETH AT 128.00 DP 7.00 passes per tooth > cut depth 0.021450 on blank with OD 0.515625 > > where #82