Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,11 +0,0 @@
|
|||
/*REXX program to convert several decimal numbers to binary (or base 2). */
|
||||
numeric digits 1000 /*ensure we can handle larger numbers. */
|
||||
@.=; @.1= 0
|
||||
@.2= 5
|
||||
@.3= 50
|
||||
@.4= 9000
|
||||
|
||||
do j=1 while @.j\=='' /*compute until a NULL value is found.*/
|
||||
y=x2b( d2x(@.j) ) + 0 /*force removal of extra leading zeroes*/
|
||||
say right(@.j,20) 'decimal, and in binary:' y /*display the number to the terminal. */
|
||||
end /*j*/ /*stick a fork in it, we're all done. */
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
/*REXX program to convert several decimal numbers to binary (or base 2). */
|
||||
@.=; @.1= 0
|
||||
@.2= 5
|
||||
@.3= 50
|
||||
@.4= 9000
|
||||
|
||||
do j=1 while @.j\=='' /*compute until a NULL value is found.*/
|
||||
y=strip( x2b( d2x( @.j )), 'L', 0) /*force removal of all leading zeroes.*/
|
||||
if y=='' then y=0 /*handle the special case of 0 (zero).*/
|
||||
say right(@.j,20) 'decimal, and in binary:' y /*display the number to the terminal. */
|
||||
end /*j*/ /*stick a fork in it, we're all done. */
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
/*REXX program to convert several decimal numbers to binary (or base 2). */
|
||||
@.=; @.1= 0
|
||||
@.2= 5
|
||||
@.3= 50
|
||||
@.4= 9000
|
||||
|
||||
do j=1 while @.j\=='' /*compute until a NULL value is found.*/
|
||||
y=word( strip( x2b( d2x( @.j )), 'L', 0) 0, 1) /*elides all leading 0s, if null, use 0*/
|
||||
say right(@.j,20) 'decimal, and in binary:' y /*display the number to the terminal. */
|
||||
end /*j*/ /*stick a fork in it, we're all done. */
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
/*REXX program to convert several decimal numbers to binary (or base 2). */
|
||||
numeric digits 200 /*ensure we can handle larger numbers. */
|
||||
@.=; @.1= 0
|
||||
@.2= 5
|
||||
@.3= 50
|
||||
@.4= 9000
|
||||
@.5=423785674235000123456789
|
||||
@.6= 1e138 /*one quinquaquadragintillion ugh.*/
|
||||
|
||||
do j=1 while @.j\=='' /*compute until a NULL value is found.*/
|
||||
y=strip( x2b( d2x( @.j )), 'L', 0) /*force removal of all leading zeroes.*/
|
||||
if y=='' then y=0 /*handle the special case of 0 (zero).*/
|
||||
say y /*display binary number to the terminal*/
|
||||
end /*j*/ /*stick a fork in it, we're all done. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue