Documentation / CalcMe

  • Demos
  • Visit our website
  • Contact us
  • MathType

    • Wiris Quizzes

      • Learning Lemur

        • CalcMe

          • MathPlayer

            • Store FAQ

              • VPAT for the electronic documentation

                • MathFlow

                  • BF FAQ

                    • Miscellaneous

                      • Wiris Integrations

                        • Home
                        • CalcMe
                        • Commands
                        • Arithmetic
                        • Arithmetic

                        Base change

                        Reading time: 1min

                        Returns a number in a different base. The representation of a number n in base b is [a0,a1,...,ak] if

                        n=a0b0+a1b1+a2b2+⋯+akbk

                        with ai<b.

                        Syntax

                        base_change(Integer, Integer)
                        
                        base_change(Vector, Integer)
                        

                        Description

                        Given an integer n in decimal base and a base b, returns a vector in the desired base in the order specified above.

                        Given a vector v and a base b, where v is the representation in base b in the order specified above, returns the number in decimal base.

                        Was this article helpful?

                        Yes
                        No
                        Give feedback about this article

                        Related Articles

                        • Expansion point
                        • Integrate
                        • Interpolate
                        • Decimal

                        Base change

                        Syntax Description

                        Making people’s STEM work more meaningful

                        MathType

                        • MathType for Office Tools
                        • MathType for Mac
                        • MathType for Microsoft 365
                        • MathType for Google Workspace
                        • MathType for LMS
                        • MathType for XML Editors
                        • Arabic notation
                        • Our products accessibility
                        • MathType is online

                        WirisQuizzes

                        Learning Lemur

                        Solutions for Education

                        • Blackboard Learn
                        • Brightspace by D2L
                        • Canvas
                        • Google Classroom
                        • Moodle
                        • Schoology

                        Solutions for Publishing Houses

                        Solutions for Technical Writers

                        Solutions for Chemistry

                        Integrations

                        • HTML Editors
                        • MathType in WordPress

                        Pricing

                        Company

                        Careers

                        Blog

                        Contact Us

                        Buy Now

                        Plugin Downloads

                        © Wiris 2025

                        • Cookie Settings
                        • Cookie Policy
                        • Terms of Use
                        • Privacy Policy / GDPR
                        • Student Data Privacy
                        • Compliance
                        • Powered by Helpjuice
                        Expand