NEAR(9)
π 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 forin1positive. the second one, the absolute-difference one, is just|in1-in2| <= differenceand that's it. two ways to say "close enough", either one counts. π
π PARAMETERS π
near.N.scaleβfloat,rw, default1. the multiplier upgrade/downgrade factor for the "same-ish size" check β¨near.N.differenceβfloat,rw, default0. 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
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms