• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

User:Σ/Testing facility/Factor

  • User page
  • Talk
  • Language
  • Watch
  • Edit
< 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.
Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Σ/Testing_facility/Factor&oldid=458551053"
Last edited on 1 November 2011, at 23:47

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 1 November 2011, at 23:47 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop