Wiris

Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • WirisQuizzes

      • LearningLemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • MathFlow

                • BF FAQ

                  • Miscellaneous

                    • Wiris Integrations

                      • Home
                      • CalcMe
                      • Commands
                      • Arithmetic
                      • Arithmetic

                      Divisors

                      Reading time: 1min

                      Returns the divisors of a number.

                      Syntax

                      divisors(Integer)
                      
                      divisors(Integer, Boolean)
                      

                      Description

                      Given an integer, returns a list with the positive divisors in ascending order.

                      Given an integer and a boolean b, if b=false it is the same as divisors(Integer); if b=true returns the negative divisors too with the following structure: {d1,-d1,d2,-d2,...,dn,-dn}, with 0<d1<d2<⋯<dn.

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Absolute
                      • Base change
                      • Bezout
                      • Bit
                      • Ceil

                      Divisors

                      Syntax Description

                      Empowering STEM education

                      MathType

                      • Office Tools
                      • LMS
                      • XML
                      • HTML

                      WirisQuizzes

                      Learning Lemur

                      Integrations

                      Solutions

                      • Education
                      • Publishing houses – platforms and interactive
                      • Publishing houses – Print and digital
                      • Technical writers

                      Pricing

                      Downloads

                      Blog

                      • Success stories

                      About us

                      • Careers
                      • Partnership

                      Contact Us

                      Contact Sales

                      European union (European Regional Development Fund) and 1EdTech (TrustEd Apps Certified)
                      • Cookie Policy
                      • Terms of Use
                      • Privacy Policy / GDPR
                      • Student Data Privacy
                      • Compliance
                      • Cookie Settings

                      © Wiris 2026

                      Expand