NEAR(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NEAR(9) β€” the near component, bestie edition πŸ’–

okay so this is a LinuxCNC HAL Component page, and honestly? it's giving "am I close enough tho" energy. the near component's whole job is deciding whether two values are roughly equal. that's it. that's the vibe. πŸ¦‹


✨ NAME ✨

near β€” figure out whether two values are roughly, like, basically equal. πŸ’…


🌸 SYNOPSIS 🌸

loadrt near [count=N|names=name1[,name2...]]

so you load it into HAL like that, and you can either ask for count=N copies or name your own with names=name1[,name2...]. your call, bestie. ✨


πŸ”₯ FUNCTIONS πŸ”₯

  • near.N β€” this one needs a floating-point thread, no cap, it will not run anywhere else. πŸ’€

πŸ’œ PINS πŸ’œ

  • near.N.in1 β€” float, in. first value, come on in 🫢
  • near.N.in2 β€” float, in. second value, welcome to the function πŸ’–
  • near.N.out β€” bit, out. the verdict ⭐

and here's what out actually means, like literally: out is true if in1 and in2 are within a factor of scale β€” that is, for in1 positive, in1/scale <= in2 <= in1*scale β€” OR if their absolute difference is no greater than difference, that is, |in1-in2| <= difference. otherwise? out is false. periodt. πŸŽ€

side note because the first one is doing a lot of work: that factor comparison is written for in1 positive. the second one, the absolute-difference one, is just |in1-in2| <= difference and that's it. two ways to say "close enough", either one counts. πŸ‘‘

πŸŽ€ PARAMETERS πŸŽ€

  • near.N.scale β€” float, rw, default 1. the multiplier upgrade/downgrade factor for the "same-ish size" check ✨
  • near.N.difference β€” float, rw, default 0. the absolute wiggle room. yes, the default is literally zero, so set it if you want slack πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Chris Radek. iconic. thank you for your service πŸ«‘πŸ’–


🌈 LICENSE 🌈

GPL. free as in slay. πŸ¦‹


and that's the whole page, bestie, no skips, nothing left out, i would never do that to you πŸ’œ this lil manual page came from the LinuxCNC Documentation, dated 2026-03-17, and it's filed under NEAR(9) in the HAL Component section. mwah, go make something spin 🌸⭐🧚

πŸ“¦ where this page comes from