Module:Utils/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
mNo edit summary
Ganaram inukshuk (talk | contribs)
mNo edit summary
Line 29: Line 29:
| desc__round = Lua-only implementation of <code>round</code>.
| desc__round = Lua-only implementation of <code>round</code>.
| desc__prime_factorization = Lua-only implementation of <code>prime_factorization</code>.
| desc__prime_factorization = Lua-only implementation of <code>prime_factorization</code>.
}}
}}
}}

Revision as of 04:28, 25 November 2025

This module primarily serves as a library for other modules and has no corresponding template.

This module provides several mathematical functions which are likely to be used frequently on the Xenharmonic Wiki.

Namely, the functions in this module can be called from other modules by using require("Module:Utils") and calling the desired functions.

For pairs of functions with names that differ by a single leading underscore (for example, gcd and _gcd), the function with an underscore is meant to be called by other modules, and the function without an underscore can be used with #invoke.

To see introspection summary, see this module's main page.