Yeah I did a test where I put the data I was using in length() into afile then did du-sh on the file.
Where length() gave me 1048576 the du -sh on the file said 1.0 MB So length() returns bytes and so length() * 8 is the bits and length() / 1024 is the Kilobytes I believe. Thanks for the replies everyone! Dan > -----Original Message----- > From: Dan Muey > Sent: Tuesday, August 26, 2003 10:30 AM > To: [EMAIL PROTECTED] > Subject: Length() is bits/bytes or neither > > > I know that the number returned by the length function is the > number of characters. With ascii text is that the bits or bytes also? > > If not is there a function similar to length() that tells you > the bits or bytes of a string or a way to figure that with > the return value of length? > > TIA > > Dan > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]