8 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
Hi!
I'm new to the site, and today I clicked on "Banking", curious as to what that was about. Aside from being able to "buy" things with these points, it appears there are some games available, on which you can wager your points. While I could access the "high scores", I could not find the... (14 Replies)
Discussion started by: sudon't
14 Replies
2. What is on Your Mind?
You guys are really are a genius, you make computer processing more easy for us end users. You just don't make wonders but you also make good computer games too. Really there is a fast evolution on the era of the computer world. Thanks to you guys!
__________________
The Cute Angry Birds... (0 Replies)
Discussion started by: methusela123
0 Replies
3. What is on Your Mind?
Do you play video games? If so, what are your favorite games? (54 Replies)
Discussion started by: Neo
54 Replies
4. UNIX for Dummies Questions & Answers
I was wondering if anyone had a script file for a game or a puzzle in a script file? Or something fun, like a quiz (2 Replies)
Discussion started by: JamieMurry
2 Replies
5. UNIX for Dummies Questions & Answers
Does anyone know of any unix-based games? (1 Reply)
Discussion started by: danceofillusion
1 Replies
6. What is on Your Mind?
So what kind of games we all play? If any?
I like RTS, C&C fan here all the way :p (8 Replies)
Discussion started by: woofie
8 Replies
7. UNIX for Dummies Questions & Answers
for some reson lokie games do not let me play the games on my linux box i go and install it but will not let me play them acts like it wants to run the game but will not open what do i do
i have return to wolfinstine
and unreal 2003
and seriurs sam
and quake 1,2,3
and starwars jedi 2
and... (1 Reply)
Discussion started by: amicrawler2000
1 Replies
8. UNIX for Dummies Questions & Answers
i have installed SDL int /opt
and i installed a game with pkgadd in /usr/local
and when i try to start the game i says:
ld.so.1: ./gamename: fatal: libSDL-1.1.so.0: open failed: No such file or directory
what should i do (1 Reply)
Discussion started by: CreamHarry
1 Replies
CheckDigits::MXX_002(3pm) User Contributed Perl Documentation CheckDigits::MXX_002(3pm)
NAME
CheckDigits::MXX_002 - compute check digits for CAS
SYNOPSIS
use Algorithm::CheckDigits;
$cas = CheckDigits('cas');
if ($cas->is_valid('1333-74-0')) {
# do something
}
$cn = $cas->complete('1333-74-');
# $cn = '1333-74-0'
$cd = $cas->checkdigit('1333-74-0');
# $cd = '0'
$bn = $cas->basenumber('1333-74-0');
# $bn = '1333-74-'
DESCRIPTION
ALGORITHM
1. Beginning right with the second digit all digits are weighted ascending starting with 1.
2. The sum of those products is computed.
3. The checksum is the last digit of the sum from step 2 (modulo 10).
METHODS
is_valid($number)
Returns true only if $number consists solely of numbers and the last digit is a valid check digit according to the algorithm given
above.
Returns false otherwise,
complete($number)
The check digit for $number is computed and concatenated to the end of $number.
Returns the complete number with check digit or '' if $number does not consist solely of digits and spaces.
basenumber($number)
Returns the basenumber of $number if $number has a valid check digit.
Return '' otherwise.
checkdigit($number)
Returns the checkdigit of $number if $number has a valid check digit.
Return '' otherwise.
EXPORT
None by default.
AUTHOR
Mathias Weidner, <mathias@weidner.in-bad-schmiedeberg.de>
THANKS
Aaron W. West pointed me to a fault in the computing of the check digit.
HERMIER Christophe made me aware that CAS is now assigning 10-digit CAS Registry Numbers (http://www.cas.org/newsevents/10digitrn.html)
SEE ALSO
perl, CheckDigits, www.pruefziffernberechnung.de, www.cas.org http://www.cas.org/expertise/cascontent/registry/checkdig.html
perl v5.10.0 2008-05-17 CheckDigits::MXX_002(3pm)