< 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 .
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.
**DISCLAIMER** We are not affiliated with Wikipedia, and Cloudflare.
The information presented on this site is for general informational purposes only and does not constitute medical advice.
You should always have a personal consultation with a healthcare professional before making changes to your diet, medication, or exercise routine.
AI helps with the correspondence in our chat.
We participate in an affiliate program. If you buy something through a link, we may earn a commission 💕
↑