Socket_read_string() returning wrong type

I’m currently reading a value from Cognax camra spreadsheet using the method

telnet_send("GVL10")

and then getting return value and the actual value

receive = socket_read_string() # status code 
receive = socket_read_string() # actual cell value 

and the problem is that when I try to use it in any way I get type error, for example I’ve tryed to convert the value back to a number but I get an error that is not a string stating with or if I try to convert it to string same error that is not a number

### Read cell value command###
telnet_send("GVL10")
receive = socket_read_string()
	textmsg(receive)
receive = socket_read_string()
	textmsg(receive)

if to_num(receive) == "1.000":
	position = "UP"
end

this is the acutal code, where the telnet_send() function is the one found here

and this is the resoult that I get from the log

1
1.000

I’ve found the solution to my problem, basically I didn’t read the manual very well and I’ve used the socket_read_ascii_float() function worong not formatting the value before passing as following
image