FILENAMES: DoN-number-screw-2.txt DoN-number-screws-2.tar DoN-number-screw-2-Sun-Solaris DoN-DAF-nscrew-2-MSDOS.zip DESCRIPTION: These files contain a program to do screw size calculations. Posted by Don Nichols . Don provided the following description: ================================================================= . Second version -- with some bugs eliminated which were spotted by Davad Forsythe when he was compiling them for MS-DOS/Windows. The bug happens to be handled gracefully by Sun's Solaris math libs, but not by others. (In particular, a division by zero in certain common conditions.) This should replace the first version. The remainder of this message is the same, other than the sizes of the files. RCMers, I've now been asked for my program for handling number-screw size calculations, so I have now produced two files to accompany this (number-screw.txt). They are: -rw-r--r-- 1 family 1950 Dec 2 17:15 DoN-number-screw-2.txt -rwxr-xr-x 1 family 6416 Dec 2 17:12 DoN-number-screw-2-Sun-Solaris* -rw-r--r-- 1 family 64512 Dec 2 17:09 DoN-number-screws-2.tar The first is a tarfile containing the C source code, the Makefile, and the article which prompted me to write the program. The second is the stripped executable, known to work on a Sun running Solaris 2.6, and compilable with both the standard C compiler and with gcc. Since it is stripped (and depending on system shared libs) it is smaller than the tarfile containing the source and all by about a factor of ten. The third is this file. Just invoking the program with no arguments produces the following help message: Usage: number-screw thread-number [TPI] The [TPI] is an optional parameter to calculate the tap drill diameter for a given thread pitch. Following are examples of it being used both with and without the optional thread pitch: izalco:csu 21:09 # number-screw 10 For a #10 screw: Clearance diameter: 0.190 izalco:csu 18:18 # number-screw 10 32 For a #10-32.000 screw: Clearance diameter: 0.190 Tap drill diameter: 0.159 dafkite@iwr.ru.ac.za has offered to compile the program to run under windows and place it in the dropbox for those of you with Windows systems and no C compiler. (I have not seen the whole of his message yet, as only a partial quote of it has made it here so far.) Note that this is not a GUI oriented program, so unless he gets fancy, you will have to execute it in a MS-DOS box, as I execute it in an xterm. (I see little point to making it GUI based, since that reduces the number of systems to which it can be easily ported.) I hope that this helps any who wish it. DoN.