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[String] - convert base-10 number to a base-2 number in string form
Calling Sequence
String(number, options)
String(number, lsbfirst, options)
String(number, msbfirst, options)
Parameters
number
-
a nonnegative integer
lsbfirst
literal indicating string should have the least significant bit first
msbfirst
literal indicating string should have the most significant bit first
options
bits option
Description
The String command converts the input number to a base-2 string, by default in least-to-most significant bit order. Specification of the option msbfirst reverses the order in the output string to most-to-least significant bit order.
The most common usage of this command would be for conversion of a number into a string of its base-2 digits.
The Split command is closely related, but the output for that command is a list of integers.
The option bits=n tells String how many bits to consider in the conversion. Any bits in a higher position are simply ignored.
The number of bits can also be set via Settings.
Examples
lsbfirst is the default
msbfirst reverses the order
Truncate at bit 8
See Also
Bits, Split
Download Help Document