Talk:SEDOLs: Difference between revisions

→‎Extra modulo?: Aha! Thanks.
(→‎Extra modulo?: Aha! Thanks.)
Line 55:
:I've tried it both ways and got the same output for several inputs. Does anyone else have an opinion? --[[User:Mwn3d|Mwn3d]] 20:29, 3 February 2010 (UTC)
:See my '0' checksum comment above. x mod 10 is in the range 0..9, so 10-(x mod 10) is in the range 1..10. The extra mod brings it back into the 0..9 range. We should have add a test case which exercises this. --[[User:IanOsgood|IanOsgood]] 21:09, 3 February 2010 (UTC)
::I knew there had to be a reason which is why I didn't just change it right away. I agree we should have a test case for that. Do you know of one? You could just have the computer try random sequences until it gets one. --[[User:Mwn3d|Mwn3d]] 21:27, 3 February 2010 (UTC)
Anonymous user