Talk:SEDOLs: Difference between revisions
Content added Content deleted
(New section: '0' checksum) |
(TCL: fails to reject the use of '_' in a SEDOL.) |
||
Line 16: | Line 16: | ||
Among the test strings ought to be one that requires a '0' to verify that the checksum is in the range 0..9 instead of 1..10. --[[User:IanOsgood|IanOsgood]] 00:34, 7 August 2008 (UTC) |
Among the test strings ought to be one that requires a '0' to verify that the checksum is in the range 0..9 instead of 1..10. --[[User:IanOsgood|IanOsgood]] 00:34, 7 August 2008 (UTC) |
||
== TCL and _ == |
|||
Hi, I generally like the use of '_' in the TCL solutio, but on checking, I find that it fails to reject the use of '_' in a SEDOL: |
|||
<lang tcl>(bin) 11 % set code B0YBKT |
|||
B0YBKT |
|||
(bin) 12 % set sedol "${code}[sedol::checksum $code]" |
|||
B0YBKT7 |
|||
(bin) 13 % set code B0YBAT |
|||
B0YBAT |
|||
(bin) 14 % set sedol "${code}[sedol::checksum $code]" |
|||
invalid character: A |
|||
(bin) 15 % set code B0YB_T |
|||
B0YB_T |
|||
(bin) 16 % set sedol "${code}[sedol::checksum $code]" |
|||
B0YB_T7 |
|||
(bin) 17 % </lang> |
|||
--[[User:Paddy3118|Paddy3118]] 05:01, 28 April 2009 (UTC) |