Basic fix.
Hi Iain.
In basic, add 100 or some big number to the values, then turn them into a string.
Seeing as how the numbers always are in the the range of say 1000-1099 on the left of the decimal point, just clip off the left digits.
You will have to handle the '-' sign separately.
you need 7 digits.
First decide if the number is positive or negative.
Make sign$=' ' if positive, and '-' if negative.
For positive number:
eg. if required number is 04.32100, adding 1000 you get 1004.321.
or for negative number:
eg. if required number is -04.32100, subtract 100 you get -104.321.
Now we always have something 4 characters wide on left of the dot.
Make axis$='X' or 'Z'
multiply that by 100000 again, and you get
100432100 or -10432100 and convert it to a string with result$=string$(number)
Now take the left 4 characters units$=left$(result$,4)
result$=axis$+sign$+right$(units$,2)+"."+right$(result$,5)
gives X 04.32100 or X-04.32100 which should make you dumb system happy.
You can use the same scheme in excel if you try.
That's the general idea anyway.
Regards. Neil
:cheers:
Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.