home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
hcshdemo.zip
/
csh-os2.zip
/
SAMPLES
/
BITS.CSH
< prev
next >
Wrap
Text File
|
1993-09-28
|
238b
|
11 lines
# Calculate the number of bits required to represent a numeric value as
# an integer.
# Copyright (c) 1989, 1990 by Hamilton Laboratories. All rights reserved.
proc bits ( n )
return ceil ( log2 ( n + 1 ) )
end
bits $argv