Misplaced Pages

User:Σ/Testing facility/Factor

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< User:Σ | Testing facility Documentation[view] [edit] [history] [purge]

This template finds if a number is a factor of another number. Use it like this:

{{User:Σ/Testing facility/Factor|number to factor|divisor|then=then string (optional, default: 1)|else=else string (optional, default: 0)}}

Examples:

  • {{User:Σ/Testing facility/Factor|10|5}} gives 1
  • {{User:Σ/Testing facility/Factor|20|11}} gives 0
  • {{User:Σ/Testing facility/Factor|4|2|then="true"|else="false"}} gives "true"
  • {{User:Σ/Testing facility/Factor|4|3|then='THREVEN'|else='THRODD'}} gives 'THRODD'
  • {{User:Σ/Testing facility/Factor|20|2|then=EVEN|else=ODD}} gives EVEN
The above documentation is transcluded from User:Σ/Testing facility/Factor/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this page.