Jump to content

CUSIP: Difference between revisions

m
diag, +1
m (diag, +1)
Line 482:
cch = repeat(-1,256)
for i='0' to '9' do
cch[i+1] = i-'0'
end for
for i='A' to 'Z' do
cch[i+1] = i-55
end for
cch['*'+1] = 36
cch['@'+1] = 37
cch['#'+1] = 38
end if
if length(cusip)!=9 or find('\0',cusip) then return 0 end if
for i=1 to 8 do
c := cusip[i]
v := cch[c+1]
if v=-1 then ?{v,c} return 0 end if
if remainder(i,2)=0 then
v *= 2
7,830

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.