
I need help playing WAV's
Quote:
> I have written a program for my company that reads a standard comma
>> separated value file. Account numbers in it are 8 digits long. To get
>> it to return properly, I used the CDBL(x) function. Problem is, when
it
>> returns an account number ending in 1, it outputs it as 0. Example:
>> Account Number 15129901 would return as 15129900.
>> The numbers are not strings in the data file, they are true values.
>> Anyone know how to fix this?
Matthew, it sounds like you are inputting it into a normal numeric value
then converting it. You might be doing this:
INPUT#1,x
y=cdbl(x)
print y
When you INPUT it into the variable x, a single precision variable, it
lost part of its value, which could not be recovered with CDBL.
Instead, just INPUT it into a double-precision variable, for example
INPUT#1,x#
much simpler
John Knoderer
MAZE MAN COMPUTER SERVICES
P O Box 55
MAZEville, AR 72747-0055
Consultant, Author, Programmer, Educator
1-501-298-3403 mornings and late evenings
1-500-GIFTED-1 (cellular)
MAZE MAN COMPUTER SERVICES
MAZE MAN PUZZLE SERVICES
Box 202 Sulphur Springs, ARkansas 72768-0202