Click here to Skip to main content
15,893,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CFileDialog Pin
Hans Dietrich20-Feb-11 23:44
mentorHans Dietrich20-Feb-11 23:44 
Questionuse of HitTest method Pin
sarfaraznawaz20-Feb-11 18:39
sarfaraznawaz20-Feb-11 18:39 
AnswerRe: use of HitTest method Pin
Cool_Dev20-Feb-11 19:27
Cool_Dev20-Feb-11 19:27 
GeneralRe: use of HitTest method Pin
sarfaraznawaz20-Feb-11 19:44
sarfaraznawaz20-Feb-11 19:44 
GeneralRe: use of HitTest method Pin
Cool_Dev20-Feb-11 21:22
Cool_Dev20-Feb-11 21:22 
GeneralRe: use of HitTest method Pin
sarfaraznawaz21-Feb-11 0:24
sarfaraznawaz21-Feb-11 0:24 
GeneralRe: use of HitTest method Pin
Cool_Dev21-Feb-11 0:27
Cool_Dev21-Feb-11 0:27 
GeneralRe: use of HitTest method Pin
sarfaraznawaz21-Feb-11 0:53
sarfaraznawaz21-Feb-11 0:53 
GeneralRe: use of HitTest method Pin
Niklas L21-Feb-11 2:07
Niklas L21-Feb-11 2:07 
GeneralRe: use of HitTest method Pin
sarfaraznawaz21-Feb-11 19:13
sarfaraznawaz21-Feb-11 19:13 
QuestionHow to get value 1.3 from a float value 1.333333 Pin
Amrit Agr20-Feb-11 17:21
Amrit Agr20-Feb-11 17:21 
AnswerRe: How to get value 1.3 from a float value 1.333333 Pin
Luc Pattyn20-Feb-11 17:39
sitebuilderLuc Pattyn20-Feb-11 17:39 
AnswerRe: How to get value 1.3 from a float value 1.333333 Pin
Hans Dietrich20-Feb-11 17:51
mentorHans Dietrich20-Feb-11 17:51 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Amrit Agr20-Feb-11 18:44
Amrit Agr20-Feb-11 18:44 
AnswerRe: How to get value 1.3 from a float value 1.333333 Pin
Alain Rist20-Feb-11 20:21
Alain Rist20-Feb-11 20:21 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Andrew Brock20-Feb-11 22:04
Andrew Brock20-Feb-11 22:04 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Alain Rist20-Feb-11 22:43
Alain Rist20-Feb-11 22:43 
Hi Andrew,

1 With a modern compiler implementing move semantics it is not that slow. You can also quicken it with a template for decimal.
2 It is safe, accurate and handles negative values.
3 It is flexible. You don't have to write a new one for each rounding you may need.

All in all this is an academic discussion Smile | :) Real world uses fixed point representations when needing rounded decimal values.

cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)

AnswerRe: How to get value 1.3 from a float value 1.333333 Pin
Cedric Moonen20-Feb-11 20:48
Cedric Moonen20-Feb-11 20:48 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Alain Rist20-Feb-11 21:12
Alain Rist20-Feb-11 21:12 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Cedric Moonen20-Feb-11 21:21
Cedric Moonen20-Feb-11 21:21 
AnswerRe: How to get value 1.3 from a float value 1.333333 Pin
Andrew Brock20-Feb-11 22:02
Andrew Brock20-Feb-11 22:02 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Niklas L20-Feb-11 22:19
Niklas L20-Feb-11 22:19 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Alain Rist20-Feb-11 22:30
Alain Rist20-Feb-11 22:30 
JokeRe: How to get value 1.3 from a float value 1.333333 Pin
Niklas L20-Feb-11 23:01
Niklas L20-Feb-11 23:01 
GeneralRe: How to get value 1.3 from a float value 1.333333 Pin
Rick York22-Feb-11 22:17
mveRick York22-Feb-11 22:17 

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.