Question: conversion of integers into binary string of fixed length

Hello,

 

I have a problem in maple with conversion to the binary writing system.  I would like to convert integers into a binary string of fixed length.

 

So 7 should become [0,0,0,1,1,1] while 22 should become [0,1,0,1,1,0].

Is that possible? (it would save me quite some time).  I know there are methods to do binary conversion in maple but it's not really what I want.

 

Many thanks!
fredbel6

This has been branched into the following page(s):
Please Wait...