max

How to find positions of the list maximum?

I have a list: a = [32, 37, 28, 30, 37, 25, 27, 24, 35, 55, 23, 31, 55, 21, 40, 18, 50, 35, 41, 49, 37, 19, 40, 41, 31] max element is 55 (two elements on position 9 and 12) I need to find on which position the maximum elements are situated. Please, help. ...

Jquery DIV element Scroll top and down ?

I have a div and some buttons. I have fixed the div with a particular height, and i have hidden the scrollbar. By clicking on a button I need scroll the div to the end of the line. for that I used $("#divid").height() & $("#divid").offset().height functions to get the entire height of the div but it returns what I have specified in the c...

mysql returns not exact value in max function when dealing with floats?

Look at this query please SELECT max( val_amd ) FROM `best_deposits` I have the max value in the table equal to 14.6(the fields has type float), But it returns 14.3599996566772 why does it happen, and how can i get the exact value? Thanks much ...

selecting a distinct count from LINQ Stored Proc

Hi there I have a stored proc that returns a resultset thus: testID(guid), testName, outcomeID(guid), outcomeName - fields testGuid1, testName1, OutcomeGuid1, outcome1 testGuid1, testName1, OutcomeGuid2, outcome2 testGuid1, testName1, OutcomeGuid3, outcome3 testGuid1, testName1, OutcomeGuid4, outcome4 testGuid1, testName1, Outcome...