Divide


Project maintained by profezzorn Hosted on GitHub Pages — Theme by mattgraham

Usage 🔗

Divide<F, V>

Arguments 🔗

Description 🔗

Divide F by V If V = 0, returns 0 Please note that Divide<> isn't an exact inverse of Mult<> because mult uses fixed-point mathematics (it divides the result by 32768) while Divide<> doesn't, it just returns F / V

See Also 🔗

Mult

Source Link 🔗

https://github.com/profezzorn/ProffieOS/blob/6f8add544c627172ad2dd698c90e5e55078a420a/functions/divide.h#L4