Hi min() is part of jquery calculation plugin. if i use var xmin = Math.min(x1, x2, x3) example var xmin = Math.min(5, 0, 3) the result will be 0 and i don't want that result. i would like to have 3 as the best result.
example: compare prices that are in a database, but you haven't a price for the 3rd store, you can't compare 0 to a real price from the 2 other stores. so the best price is among the 2 remaining stores. that's why i want to exclude 0 from the calculation. regards On Dec 31 2009, 11:21 pm, Šime Vidas <sime.vi...@gmail.com> wrote: > I'm not sure what youre trying to do here... > but the jQuery object does not contain the min() method as a property. > > To use the Math.min method, you give the values as arguments... > > var xmin = Math.min(x1, x2, x3);