logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

div2 - Quotient of two floating point inputs

Author

       Noel Rodes

Description

       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.

Functions

div2.N (requires a floating-point thread)

License

       GPL

LinuxCNC Documentation                             2025-08-07                                            DIV2(9)

Name

       div2 - Quotient of two floating point inputs

Parameters

div2.N.deadband float rw
              The out will be zero if in is between -deadband and +deadband

Pins

div2.N.in0 float in
              the Dividend

       div2.N.in1 float in
              the Divisor

       div2.N.out float out
              the Quotient   out = in0 / in1

See Also

mult2(9), invert(9)

Synopsis

loadrtdiv2[count=N|names=name1[,name2...]]

See Also