Double
-
Can you tell me how to check a String is double type in MFC? -- modified at 10:33 Sunday 14th May, 2006
-
Can you tell me how to check a String is double type in MFC? -- modified at 10:33 Sunday 14th May, 2006
a string is a string, it is never a 'double' or any other type. if you want to check if a string represents a floating point number, you need to check for the obvious things: is it all numbers ? does it have an optional single decimal point ? a negative sign in front? an exponent at the end? etc. Cleek | Image Toolkits | Thumbnail maker
-
Can you tell me how to check a String is double type in MFC? -- modified at 10:33 Sunday 14th May, 2006
-
Can you tell me how to check a String is double type in MFC? -- modified at 10:33 Sunday 14th May, 2006
cuongbao197 wrote:
Can you tell me how to check a String is double type in MFC?
you have implement logic to find out that:- you have to check each character of string for Numeral(compulsory),Single 'e' (for exponent,optional) and single Decimal(compulsory). if any of condition fails thne string is definatly not a Float.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV