Anonymous user
Validate International Securities Identification Number: Difference between revisions
Validate International Securities Identification Number (view source)
Revision as of 12:49, 10 January 2020
, 4 years ago→{{header|REXX}}: added/changed whitespace, used templates for the output sections.
Langurmonkey (talk | contribs) (→{{header|langur}}: simplified .isintest() function and added comments) |
m (→{{header|REXX}}: added/changed whitespace, used templates for the output sections.) |
||
Line 2,093:
'AU0000VXGZA3 FR0000988040' /* [↑] use the default list of ISINs.*/
/* [↓] process all specified ISINs.*/
exit /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/
Luhn: procedure; parse arg x;
y= reverse( left(0, length(x) // 2)x)
return right($, 1)==0 /*return "1" if number passed Luhn test*/</lang>
<pre>
US0378331005 valid
|