Click here to Skip to main content
15,916,091 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 2 process with similar path and name Pin
Hamid_RT15-Nov-06 20:01
Hamid_RT15-Nov-06 20:01 
GeneralRe: 2 process with similar path and name Pin
samira forooghi15-Nov-06 20:22
samira forooghi15-Nov-06 20:22 
GeneralRe: 2 process with similar path and name Pin
Mark Salsbery16-Nov-06 5:12
Mark Salsbery16-Nov-06 5:12 
GeneralRe: 2 process with similar path and name Pin
Hamid_RT16-Nov-06 7:35
Hamid_RT16-Nov-06 7:35 
QuestionFloat Pin
Ramu.e15-Nov-06 19:20
Ramu.e15-Nov-06 19:20 
AnswerRe: Float Pin
Christian Graus15-Nov-06 19:26
protectorChristian Graus15-Nov-06 19:26 
AnswerRe: Float Pin
priyeshtinku15-Nov-06 20:27
priyeshtinku15-Nov-06 20:27 
AnswerRe: Float Pin
beko16-Nov-06 0:32
beko16-Nov-06 0:32 
Hello,

I have taken this code from somewhere i dont remember, and changed to work with doubles (since the int variable may not store the double variable)

double round(double Num, double Seed)
{
// get rational factor
double fac = Num / Seed;

// get natural factor
fac = (fac < 0) ? (ceil(fac - 0.5)) : (floor(fac + 0.5));
// fac = (fac < 0) ? static_cast<int>(fac-0.5) : static_cast<int>(fac+0.5);

// return multiple
return fac * Seed;
}

use it with round(3.8984, 0.01) for example....

Bekir...
Questionhow to overlap dialog and direct show Pin
sdhtyjnniutnbjnhbghb15-Nov-06 19:17
sdhtyjnniutnbjnhbghb15-Nov-06 19:17 
AnswerRe: how to overlap dialog and direct show Pin
Mark Salsbery16-Nov-06 5:24
Mark Salsbery16-Nov-06 5:24 
GeneralRe: how to overlap dialog and direct show Pin
sdhtyjnniutnbjnhbghb16-Nov-06 14:06
sdhtyjnniutnbjnhbghb16-Nov-06 14:06 
GeneralRe: how to overlap dialog and direct show Pin
Mark Salsbery16-Nov-06 14:25
Mark Salsbery16-Nov-06 14:25 
Questionwait cursor Pin
Sunshine Always15-Nov-06 19:16
Sunshine Always15-Nov-06 19:16 
AnswerRe: wait cursor Pin
prasad_som15-Nov-06 19:24
prasad_som15-Nov-06 19:24 
AnswerRe: wait cursor Pin
Christian Graus15-Nov-06 19:25
protectorChristian Graus15-Nov-06 19:25 
AnswerRe: wait cursor Pin
Steve Echols15-Nov-06 19:37
Steve Echols15-Nov-06 19:37 
AnswerRe: wait cursor Pin
Hamid_RT15-Nov-06 19:56
Hamid_RT15-Nov-06 19:56 
QuestionLogger Pin
vikramlinux15-Nov-06 19:09
vikramlinux15-Nov-06 19:09 
AnswerRe: Logger Pin
bab s15-Nov-06 23:52
bab s15-Nov-06 23:52 
GeneralRe: Logger Pin
vikramlinux16-Nov-06 1:10
vikramlinux16-Nov-06 1:10 
QuestionDuplication Of Code in DLL(True/False) Pin
Cmania15-Nov-06 19:03
Cmania15-Nov-06 19:03 
QuestionCFile or CStdiofile : inserting text to begining of a existing file Pin
NILANKARAJA15-Nov-06 18:48
NILANKARAJA15-Nov-06 18:48 
AnswerRe: CFile or CStdiofile : inserting text to begining of a existing file Pin
Raj Prathap15-Nov-06 19:04
Raj Prathap15-Nov-06 19:04 
GeneralRe: CFile or CStdiofile : inserting text to begining of a existing file Pin
NILANKARAJA15-Nov-06 19:09
NILANKARAJA15-Nov-06 19:09 
GeneralRe: CFile or CStdiofile : inserting text to begining of a existing file Pin
Raj Prathap15-Nov-06 20:40
Raj Prathap15-Nov-06 20:40 

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.