IBAN: Difference between revisions
Content added Content deleted
m (Minor edit) |
|||
Line 33: | Line 33: | ||
} |
} |
||
ClassMethod Mod( |
ClassMethod Mod(pNum As %Integer, pDiv As %Integer) As %Integer [ Internal, Private ] |
||
{ |
{ |
||
If $Length( |
If $Length(pNum)<9 Quit pNum#pDiv |
||
Set res=0 |
Set res=0 |
||
For i=1:1:$Length( |
For i=1:1:$Length(pNum)\7+1 { |
||
Set res=(res_$Extract( |
Set res=(res_$Extract(pNum, 1, 7))#pDiv |
||
Set |
Set pNum=$Extract(pNum, 8, *) |
||
} |
} |
||
Quit res |
Quit res |