Click here to Skip to main content
15,798,200 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mathematical Question Pin
n.podbielski5-Nov-12 23:08
n.podbielski5-Nov-12 23:08 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:14
Abrek Okur5-Nov-12 23:14 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:16
subeditorPete O'Hanlon5-Nov-12 23:16 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:27
Abrek Okur5-Nov-12 23:27 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:36
subeditorPete O'Hanlon5-Nov-12 23:36 
AnswerRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:53
Abrek Okur5-Nov-12 23:53 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon6-Nov-12 0:00
subeditorPete O'Hanlon6-Nov-12 0:00 
GeneralRe: Mathematical Question Pin
lukeer5-Nov-12 23:47
lukeer5-Nov-12 23:47 
In line 6 you comment "// Getting the difference...", but the equation on the same line is adding. To get a difference, you have to subtract:
C#
result = max - min;

Let's use values in this equation:
result = 20 -(-10);
result = 20 + 10;
result = 30;

Ciao,


luker


modified 8-Nov-12 9:41am.

GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:51
Abrek Okur5-Nov-12 23:51 
GeneralRe: Mathematical Question Pin
lukeer6-Nov-12 0:47
lukeer6-Nov-12 0:47 
QuestionRe: Mathematical Question Pin
n.podbielski5-Nov-12 23:06
n.podbielski5-Nov-12 23:06 
AnswerRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:13
subeditorPete O'Hanlon5-Nov-12 23:13 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 23:15
Abrek Okur5-Nov-12 23:15 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:17
subeditorPete O'Hanlon5-Nov-12 23:17 
GeneralRe: Mathematical Question Pin
n.podbielski5-Nov-12 23:43
n.podbielski5-Nov-12 23:43 
AnswerRe: Mathematical Question Pin
Ingo6-Nov-12 5:56
Ingo6-Nov-12 5:56 
QuestionAssigning Variables in C# for ORACLE Pin
KingJames065-Nov-12 20:52
KingJames065-Nov-12 20:52 
AnswerRe: Assigning Variables in C# for ORACLE Pin
Abhinav S5-Nov-12 22:16
Abhinav S5-Nov-12 22:16 
GeneralRe: Assigning Variables in C# for ORACLE Pin
KingJames065-Nov-12 23:13
KingJames065-Nov-12 23:13 
GeneralRe: Assigning Variables in C# for ORACLE Pin
Eddy Vluggen6-Nov-12 0:45
professionalEddy Vluggen6-Nov-12 0:45 
GeneralRe: Assigning Variables in C# for ORACLE Pin
KingJames066-Nov-12 15:38
KingJames066-Nov-12 15:38 
GeneralRe: Assigning Variables in C# for ORACLE Pin
Eddy Vluggen6-Nov-12 23:45
professionalEddy Vluggen6-Nov-12 23:45 
QuestionC#, Win'7, Port Mystery Pin
C-P-User-35-Nov-12 13:49
C-P-User-35-Nov-12 13:49 
AnswerRe: C#, Win'7, Port Mystery Pin
Pete O'Hanlon5-Nov-12 23:18
subeditorPete O'Hanlon5-Nov-12 23:18 
GeneralRe: C#, Win'7, Port Mystery Pin
C-P-User-36-Nov-12 7:03
C-P-User-36-Nov-12 7:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.