Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Bits[Split] - split number into bit multiples
Calling Sequence
Split(number, options)
Split(number, sbits, options)
Parameters
number
-
an integer
sbits
(optional) positive integer number of bits to split on
options
bits option
Description
The Split command breaks the input number into a list of sbits bit length (default is 1) numbers, least significant bits first.
Put simply, the Split command converts a number into a list of the base 2^sbits digits.
The most common usage of this command would be for conversion of a number into its base-2 digits, but it could also be used, for example, to convert a number to octal or hex (see convert/octal or convert/hex).
The String command is closely related, but the output for that command is a string.
The option bits=n tells Split how many bits to consider in the split. Any bits in a higher position are simply ignored.
The number of bits can also be set via Settings.
The reverse operation, converting the digits to a number, is accomplished using the Join command.
Examples
Convert to binary
Convert to octal
Convert first 6 bits to octal
Convert first 32 bits to hex
To bits, then back to a number
See Also
Bits, Join, String
Download Help Document