home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Piper's Pit BBS/FTP: ibm 0210 - 0219
/
ibm0210-0219
/
ibm0213.tar
/
ibm0213
/
HAM_W32.ZIP
/
SAMPLES
/
BITS.CSH
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1994-05-12
|
238 b
|
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