DOKK / manpages / debian 12 / linuxcnc-uspace / div2.9.en
DIV2(9) HAL Component DIV2(9)

div2 - Quotient of two floating point inputs

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

A very simple comp to divide a floating point number by another floating point number, to get a floating point result. Remember, not to use a zero divisor. A zero divisor creates an indefinte result. This is simple mathematics.

the Dividend
the Divisor
the Quotient out = in0 / in1

The out will be zero if in is between -deadband and +deadband

mult2(9), invert(9)

Noel Rodes

GPL

2023-02-10 LinuxCNC Documentation