Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: what it mean ? Pin
ThatsAlok13-Dec-07 0:18
ThatsAlok13-Dec-07 0:18 
Generalcannot convert from 'char *' to 'unsigned short *' Pin
santhoshv8411-Dec-07 21:50
santhoshv8411-Dec-07 21:50 
GeneralRe: cannot convert from 'char *' to 'unsigned short *' Pin
Cedric Moonen11-Dec-07 21:55
Cedric Moonen11-Dec-07 21:55 
GeneralRe: cannot convert from 'char *' to 'unsigned short *' Pin
CPallini11-Dec-07 22:01
mveCPallini11-Dec-07 22:01 
GeneralProblem in Opening HTML file. Pin
sanjeeva K Kanakam11-Dec-07 21:23
sanjeeva K Kanakam11-Dec-07 21:23 
GeneralRe: Problem in Opening HTML file. Pin
Iain Clarke, Warrior Programmer12-Dec-07 1:52
Iain Clarke, Warrior Programmer12-Dec-07 1:52 
Generalatof() losing precision Pin
Andy H11-Dec-07 20:33
Andy H11-Dec-07 20:33 
GeneralRe: atof() losing precision Pin
Cedric Moonen11-Dec-07 21:02
Cedric Moonen11-Dec-07 21:02 
That's because atof returns a float (guess what the 'f' in the function name stands for ?). You could try by using stringstream from the STL:

stringstream ssVal;
double dValue;
ssVal << pszValue;
ssVal >> dValue;


Don't forget to #include <sstream> and to put using namespace std; at the top of your cpp file.


Forget what I say, I wasn't awake Poke tongue | ;-P . If you look at the range of a double, you'll see that the accuracy (here)[^] is 14 or 15 digits. Your string contains much more digits than that. Now, if the number that you want to represent is an integer value, why don't you use an __int64 instead ?
But, I have a question: why do you need such an accuracy, why is it important ? In most of the cases, you won't need that accuracy.


Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: atof() losing precision Pin
Llasus11-Dec-07 21:07
Llasus11-Dec-07 21:07 
GeneralRe: atof() losing precision Pin
Cedric Moonen11-Dec-07 21:13
Cedric Moonen11-Dec-07 21:13 
GeneralFiles related Pin
rajanponnalagu11-Dec-07 19:35
rajanponnalagu11-Dec-07 19:35 
GeneralRe: Files related Pin
Llasus11-Dec-07 20:45
Llasus11-Dec-07 20:45 
GeneralRe: Files related Pin
rajanponnalagu11-Dec-07 21:21
rajanponnalagu11-Dec-07 21:21 
GeneralRe: Files related Pin
Sunil Shindekar11-Dec-07 23:38
Sunil Shindekar11-Dec-07 23:38 
GeneralRe: Files related Pin
rajanponnalagu12-Dec-07 1:08
rajanponnalagu12-Dec-07 1:08 
GeneralRe: Files related Pin
Iain Clarke, Warrior Programmer12-Dec-07 1:57
Iain Clarke, Warrior Programmer12-Dec-07 1:57 
GeneralRe: Files related Pin
Sunil Shindekar12-Dec-07 19:59
Sunil Shindekar12-Dec-07 19:59 
GeneralRe: Files related Pin
David Crow13-Dec-07 5:11
David Crow13-Dec-07 5:11 
QuestionRe: Files related Pin
David Crow13-Dec-07 5:13
David Crow13-Dec-07 5:13 
GeneralRe: Files related Pin
Paresh Chitte11-Dec-07 21:30
Paresh Chitte11-Dec-07 21:30 
GeneralRe: Files related Pin
rajanponnalagu11-Dec-07 22:21
rajanponnalagu11-Dec-07 22:21 
QuestionEdit subitem in ListView ? Pin
nitin311-Dec-07 19:29
nitin311-Dec-07 19:29 
AnswerRe: Edit subitem in ListView ? Pin
Llasus11-Dec-07 20:46
Llasus11-Dec-07 20:46 
AnswerRe: Edit subitem in ListView ? Pin
Naveen11-Dec-07 20:59
Naveen11-Dec-07 20:59 
Generalcommand line for "Extract ALL" Pin
Abhi Lahare11-Dec-07 19:04
Abhi Lahare11-Dec-07 19:04 

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.