Template:Factorization/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{lua|Utils}}
This template returns the [[prime factorization]] for a given integer. <code>{<nowiki />{factorisation}}</code> works as well.
=== Usage ===
=== Usage ===
; You type
; You type
: <code>{{((}}factorization{{pipe}}270{{))}}</code>
: <code>{<nowiki />{factorization|270}}</code>


; You get
; You get
: {{{{ROOTPAGENAME}}|270}}
: {{{{ROOTPAGENAME}}|270}}
=== See also ===
* {{modlink|Utils}}

Latest revision as of 03:19, 16 February 2025

This template returns the prime factorization for a given integer. {{factorisation}} works as well.

Usage

You type
{{factorization|270}}
You get
2 × 33 × 5