CS 220
You can use the bc program in Unix to verify your SAL multiplication program. Here's an example:
bluebird:~ * bc bc 1.03 (Nov 2, 1994) Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. obase=16 ibase=16 CCCC*3333 28F570A4 5555*AAAA 38E31C72 quit bluebird:~ *If you want to use binary numbers directly, type
obase=2 ibase=2rather than the lines above, which are for hexadecimal. If you think about it for a second, it's important to change the output base (obase) before changing the input base (ibase).