Thanks for the help, that works, would i use the same method to use other mathmatical functions?
For example sin() would be
m_fSin=m_fSin+atof(m_sDisplay);
m_sDisplay="";
m_fSinRes = sin(m_fSin);
char strSin[20];
m_fmem=m_fSinRes;
gcvt(m_fmem,6,strSin);
for (int i = 0;i<20;i++)
m_sDisplay = m_sDisplay+strSin[i];
UpdateData(FALSE);
Ive just tried that and it compiles, but gives me a strange result when testing, i type 45 then sin() and the answer should be 0.707, yet i get 0.850904???????
Is this anything to do with the fact its a floating point number? 'just a guess by the way!'
Thanks
Ash
My new web design domain
www.askmultimedia.co.uk