any idea how to get the numbers out of a MFC CString?

CString test = ".9 .8 .6";
double out [3];
???

in the end double should = .9,.8,.6