Questions tagged [highest]
134 questions
2
votes
4 answers
Highest Negative Value
I don't understand why this doesn't work. I want to print the highest negative value from a series of user-inputted negative ints. E.g., user inputs: -1, -5, -3, program returns -1. But my program (below) is returning -5. Why is this? Is my code…

CoderBaby
- 91
- 2
- 8
2
votes
2 answers
Python nested dict top N values with highest confidence
I have a dict, which looks like this:
{
"name1" : { "title":"someTitle", "confidence" : 0.765 },
"name2" : { "title":"someTitle2", "confidence" : 0.9343 },
"name3" : { "title":"someTitle3", "confidence" : 0.0031 },
"name4" : { "title":"someTitle4",…

Nix
- 465
- 1
- 7
- 16
2
votes
1 answer
How to SUM two highest salary on table EMP on deptno ( deptno 10,20,30) using BREAK and COMPUTE SUM?
This is my code:
BREAK ON DEPTNO SKIP 1
compute sum of sal on deptno
SELECT deptno, empno, ename,sal FROM
(SELECT deptno, empno, ename, sal FROM emp group by deptno, empno, ename, sal order by DEPTNO)
WHERE ROWNUM <= 2;
But the result is:
…

Goran Bart Bartolić
- 81
- 9
2
votes
1 answer
How do i find the highest digit in a multi-digit number?
Okay so I have an exercise to do I need to find the highest and the lowest digit in a number and add them together.So I have a number n which is 5368 and the code needs to find the highest (8) and the lowest (3) number and add them together (11).How…

Oktavix
- 151
- 1
- 2
- 9
2
votes
1 answer
PHP get largest number from 3 variables
Possible Duplicate:
Return variable with the highest value?
I'm trying to come up with a simple way of finding the highest number out of 3 variables.
$1 = 100
$2 = 300
$3 = 200
out of those 3 variables, I want to set a new variable as the…

Dylan Cross
- 5,918
- 22
- 77
- 118
1
vote
2 answers
C++ max/min element in an array without knowing array size
I was given a task, it's nothing special but I did hit the wall here...
After getting arithmetical means I need to compare them and output the highest and the lowest ones.
The x is a student number, the vid[] is the arithmetical mean.
For…

RnD
- 1,019
- 5
- 23
- 49
1
vote
0 answers
Highest values among corresponding field in oracle
I have two supplier_type (Direct and Indirect) for one supply code. I want to produce a new column supplier_type based on supplier_Name for one supply_code like
Example:
If supply_Name is Apple,Dell,Hp,Lenovo then supply_type as Direct
If…
1
vote
1 answer
Subset/extract the highest values of groups in one column based on values of groups in other columns
I'm looking at oxygen concentrations in relation to bottom trawling at different depths in inner Danish waters for the last 40 years.
I have a data frame (Oxy) with four columns: ID, Date, Depth and Oxygen. The Oxygen has been measured throughout…

Erik Christensen
- 13
- 3
1
vote
1 answer
Ansible - Compare a variable (string) against the dict/list (of strings) and find the match with the highest number and extract that number
I wrote a playbook that creates a new resource or multiple resources. Name for this resource is generated with various user inputs with one addition - a number. So, generated name looks like resource_name_1, resource_name_2, depending on how many…

LJS
- 317
- 1
- 9
1
vote
2 answers
What is the syntax in Oracle to round any number to the greatest/highest place value of that number?
I have a wide variety of numbers
In the ten thousands, thousands, hundreds, etc
I would like to compute the rounding to the highest place value ex:
Starting #: 2555.5
Correctly Rounded : 3000
——
More examples ( in the same report )
Given:…

Celeste Essel
- 11
- 1
1
vote
2 answers
Find the highest and lowest value for a time frame in the pine editor
As an absoulutely new beginner I'm experimenting with the pine editor of Tradingview.
I wrote a simple script that plots the difference between ema and dema. Additionally, I want to get the highest and lowest value in the choosen time frame.
Let's…

Ramses
- 652
- 2
- 8
- 30
1
vote
1 answer
flutter finding out the title of the ToDoItem that has the highest price
To-Do App
class ToDoItem{
final String id;
final String title;
final Color color;
final int price;
final IconData icon;
final String todoListId;
const ToDoItem({
@required this.color,
@required this.id,
@required…

Chad
- 545
- 1
- 6
- 10
1
vote
0 answers
Top Group BY Problem DB2
Possible Duplicate:
Top Group By DB2
I've been trying for hours but can't get the query to do what I want using DB2. From table Company and Users I have the following tickets quantity info per company/user
QUERY USING:
SELECT T.USER,…

Juan Carlos Costilla
- 119
- 1
- 7
- 15
1
vote
2 answers
How can I find the maximal increase over 6 values in a dataset
I have a data set of core temperature values. Each 10th second I have collected a temperature value, over a duration of several hours. I try to find the highest increase (Tslope) of the temperature within 6 temperature values. I tried the approach…

therock7
- 25
- 6
1
vote
1 answer
xarray get the highest coordinate for variable values that are not NaN
Is there a vectorized way to extract 6 from air and 7 from wind?
ds = xr.merge([
xr.DataArray([3, 5, 6], coords={'init': [0, 1, 2]}, dims='init', name='air'),
xr.DataArray([8, 7, np.nan], coords={'init': [0, 1, 2]}, dims='init',…

Andrew
- 507
- 5
- 16