#include <stdio.h>
#include <string.h>

int main(void) {
	const char *s="LINESTRING('3.584731 60.739211,3.590472 60.738030,3.592740 60.736220')";
	int n=0;
	double d;
	s=strchr(s,'\'')+1;
	while( 1==sscanf(s+=n,"%lf%*1[ ,]%n",&d,&n) )
		printf("\n%f",d);
	return 0;
}
