A
Armin Zingler
BillE said:I see; it is interesting, however, that val("d4860") = 0.0, not
10^4860.
0 * 10^4860 = 0
val("d2") = 0.0,
0 * 10^2 = 0
val("d2") is equal to val("0d2")
BillE said:I see; it is interesting, however, that val("d4860") = 0.0, not
10^4860.
val("d2") = 0.0,
I see; it is interesting, however, that val("d4860") = 0.0, not 10^4860.
val("d2") = 0.0, but it would seem that it should be 1000.0. Val("10e2") =
1000.0
I see; it is interesting, however, that val("d4860") = 0.0, not 10^4860.
val("d2") = 0.0, but it would seem that it should be 1000.0. Val("10e2") =
1000.0
BillE said:I have to sort a list of Employees by the alphanumeric Employee Number (not
the primary key, but a unique index available to the user).
Sometimes users want to sort by the initial numerals of the employee number.
"2abc" should come before "11abc".
I thought the val function should accept any ascii characters. The val
function should return a double: val("2abc") = 2.0 val("11abc") = 11.0
val("abc") = 0.0
BillE said:I have to sort a list of Employees by the alphanumeric Employee Number (not
the primary key, but a unique index available to the user).
Sometimes users want to sort by the initial numerals of the employee number.
"2abc" should come before "11abc".
I thought the val function should accept any ascii characters. The val
function should return a double: val("2abc") = 2.0 val("11abc") = 11.0
val("abc") = 0.0
Hello, Tom,
Re: "...but I'm not familiar with using D/d..."
If I recall correctly, the scientific notation using "E" first arose in
Fortran. There "E" was used for literals that were to be interpreted as
single precision (4-byte) and "D" was used for literals that were to be
interpreted as double precision (8-byte).
So perhaps this is a carryover from days of yore.
Cheers,
Randy
Hello, Tom,
Re: "...but I'm not familiar with using D/d..."
If I recall correctly, the scientific notation using "E" first arose in
Fortran. There "E" was used for literals that were to be interpreted as
single precision (4-byte) and "D" was used for literals that were to be
interpreted as double precision (8-byte).
So perhaps this is a carryover from days of yore.
Cheers,
Randy