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

                      Bit

                      Reading time: 1min

                      Returns a bit in the binary representation of a number.

                      Syntax

                      bit(Integer, Integer)
                      

                      Description

                      Given two integers n and i, returns the i-th element of the binary representation of n.

                      n=a020+a121+⋯+ai2i+⋯+ak2k

                      Was this article helpful?

                      Give feedback about this article

                      Related Articles

                      • Absolute
                      • Base change
                      • Bezout
                      • Ceil
                      • Chinese theorem

                      Bit

                      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