Click here to Skip to main content
15,887,302 members
Home / Discussions / C#
   

C#

 
AnswerNote for responders` Pin
Pete O'Hanlon6-Nov-12 0:38
mvePete O'Hanlon6-Nov-12 0:38 
QuestionMathematical Question Pin
Abrek Okur5-Nov-12 21:16
Abrek Okur5-Nov-12 21:16 
AnswerRe: Mathematical Question Pin
Sivaraman Dhamodharan5-Nov-12 21:38
Sivaraman Dhamodharan5-Nov-12 21:38 
AnswerRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 22:06
mvePete O'Hanlon5-Nov-12 22:06 
GeneralRe: Mathematical Question Pin
n.podbielski5-Nov-12 22:08
n.podbielski5-Nov-12 22:08 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 22:14
Abrek Okur5-Nov-12 22:14 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 22:16
mvePete O'Hanlon5-Nov-12 22:16 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 22:27
Abrek Okur5-Nov-12 22:27 
Okey. Let's say we got some values like this:

C#
int min = -10;
int max = 20;
int result = 0; 
int step = 0;

result = min + max;     // Getting the diffrence value from Max to Min.
step = result / 100;    // Getting the value from how many step there is needed.
midRange = result / 2;  // Getting the value from where the couser needs to be placed. (In the middle)

result = 10;
step = 5;
midRange 2.5;


The problem is that from -10 to 20, there is 30 steps, right? Dead | X| Confused | :confused:

*This math should I have learned in my first school year -_- lol.
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 22:36
mvePete O'Hanlon5-Nov-12 22:36 
AnswerRe: Mathematical Question Pin
Abrek Okur5-Nov-12 22:53
Abrek Okur5-Nov-12 22:53 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 23:00
mvePete O'Hanlon5-Nov-12 23:00 
GeneralRe: Mathematical Question Pin
lukeer5-Nov-12 22:47
lukeer5-Nov-12 22:47 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 22:51
Abrek Okur5-Nov-12 22:51 
GeneralRe: Mathematical Question Pin
lukeer5-Nov-12 23:47
lukeer5-Nov-12 23:47 
QuestionRe: Mathematical Question Pin
n.podbielski5-Nov-12 22:06
n.podbielski5-Nov-12 22:06 
AnswerRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 22:13
mvePete O'Hanlon5-Nov-12 22:13 
GeneralRe: Mathematical Question Pin
Abrek Okur5-Nov-12 22:15
Abrek Okur5-Nov-12 22:15 
GeneralRe: Mathematical Question Pin
Pete O'Hanlon5-Nov-12 22:17
mvePete O'Hanlon5-Nov-12 22:17 
GeneralRe: Mathematical Question Pin
n.podbielski5-Nov-12 22:43
n.podbielski5-Nov-12 22:43 
AnswerRe: Mathematical Question Pin
Ingo6-Nov-12 4:56
Ingo6-Nov-12 4:56 
QuestionAssigning Variables in C# for ORACLE Pin
KingJames065-Nov-12 19:52
KingJames065-Nov-12 19:52 
AnswerRe: Assigning Variables in C# for ORACLE Pin
Abhinav S5-Nov-12 21:16
Abhinav S5-Nov-12 21:16 
GeneralRe: Assigning Variables in C# for ORACLE Pin
KingJames065-Nov-12 22:13
KingJames065-Nov-12 22:13 
GeneralRe: Assigning Variables in C# for ORACLE Pin
Eddy Vluggen5-Nov-12 23:45
professionalEddy Vluggen5-Nov-12 23:45 
GeneralRe: Assigning Variables in C# for ORACLE Pin
KingJames066-Nov-12 14:38
KingJames066-Nov-12 14:38 

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.