Hello Guest it is April 26, 2024, 10:13:15 PM

Author Topic: Round Double and ACos, ASin  (Read 1450 times)

0 Members and 1 Guest are viewing this topic.

Round Double and ACos, ASin
« on: October 30, 2021, 08:57:39 PM »
Hello good day, i generate my code con Gcode:
Code "G1 Z" & z(i) & " Y" & y(i) & " F" & Fm(i)
 but my result are several point decimal, then this exist function as round(z(i),3) for round a three point decimal or as i can make this?

I no find the function Acos and Asin, only Atn or this two function no available?

thanks
Renato

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Round Double and ACos, ASin
« Reply #1 on: October 30, 2021, 09:28:47 PM »
Mach3 uses a Cypress version of VB and has a reduced instruction set so the best you have is the trig commands are :-

Exp, Log, Sqr, Rnd, Abs, Sgn, Atn, Cos, Sin, Tan, Int, Fix

The manual is on the forum if you search for it :-  VBScript_Commands.pdf
Without engineers the world stops
Re: Round Double and ACos, ASin
« Reply #2 on: November 05, 2021, 10:26:37 AM »
thanks