Round system parameter to tenths?

More
24 Oct 2023 01:47 #283654 by nick.smith
Round system parameter to tenths? was created by nick.smith
If I have:

G28.1
(debug , X is #5161)

It will display the result as 5.123456

How can I format it to 5.1234? Also, how can I pull just the integer and modulus?

Please Log in or Create an account to join the conversation.

More
24 Oct 2023 01:56 #283655 by cmorley
The following user(s) said Thank You: MaHa

Please Log in or Create an account to join the conversation.

More
24 Oct 2023 01:59 #283656 by nick.smith
Replied by nick.smith on topic Round system parameter to tenths?
Excellent, but I'm not on 2.9 sadly.

Please Log in or Create an account to join the conversation.

More
24 Oct 2023 11:19 #283690 by andypugh
Replied by andypugh on topic Round system parameter to tenths?
To answer the second question

#100 = [#5161 MOD 10]
#101 = [#5161 - #100]
(debug, #101 #100)

If you want 2.9, it's installable, but I haven't quite finished all the documentation work around the release. But this process should work:
linuxcnc.org/docs/2.9/html/getting-start...dating-linuxcnc.html
Except that the package name is 2.9-uspace not 2.9-rtpreempt. (That's one of the thinngs I need to change)

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum