update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
|
|
@ -1,12 +1,18 @@
|
|||
/* NetRexx */
|
||||
options replace format comments java crossref symbols nobinary
|
||||
|
||||
options replace format comments java crossref savelog symbols nobinary
|
||||
|
||||
nums = [5, 50, 9000]
|
||||
|
||||
loop n_ = 0 to nums.length - 1
|
||||
v_ = nums[n_]
|
||||
say v_.d2x.x2b.strip('L', 0)
|
||||
end n_
|
||||
|
||||
runSample(arg)
|
||||
return
|
||||
|
||||
method getBinaryDigits(nr) public static
|
||||
bd = nr.d2x.x2b.strip('L', 0)
|
||||
if bd.length = 0 then bd = 0
|
||||
return bd
|
||||
|
||||
method runSample(arg) public static
|
||||
parse arg list
|
||||
if list = '' then list = '0 5 50 9000'
|
||||
loop n_ = 1 to list.words
|
||||
w_ = list.word(n_)
|
||||
say w_.right(20)':' getBinaryDigits(w_)
|
||||
end n_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue