BrightNail
11-21-2002, 06:56 PM
hey all,
I can do this, but I think my way would be long and ponderous.
is there a quick/efficient way to compare numerous arrays.....but only compare the 1st. and last element of each so that I get the "lowest" and "highest"...so that I can generate a range...
take my three arrays..
var price1 = new array (10.00, 11.00, 45.00, 98.00);
var price2 = new array (10.50, 11.00, 45.00,102.00);
var price3 = new array (9.00, 16.00, 47.00, 99.00);
the range would be..
9.00 - 102.00
thanks,
james
I can do this, but I think my way would be long and ponderous.
is there a quick/efficient way to compare numerous arrays.....but only compare the 1st. and last element of each so that I get the "lowest" and "highest"...so that I can generate a range...
take my three arrays..
var price1 = new array (10.00, 11.00, 45.00, 98.00);
var price2 = new array (10.50, 11.00, 45.00,102.00);
var price3 = new array (9.00, 16.00, 47.00, 99.00);
the range would be..
9.00 - 102.00
thanks,
james