#include<stdio.h> int main(int argc, char* argv[]) { double test = 0; char *pszTest = "100.000000"; sscanf(pszTest, "%10.6f", &test); printf("%10.6f", test); return 0; }