577/5000
Hi, I’m trying to integrate the processor converter, adding the HEX string to integer conversion:
…
result, err: = strconv.ParseInt (value, 16, 64)
…
The problem is that the ParseInt function returns an int64 and how much I try to do the conversion to int16 (the starting HEX string is 16 bit and to take the sign into account I have to do a conversion to int16):
i16: = int16 (result)
…
return i16, true
The system seems to completely ignore this instruction, always returning the representation of the number to int64.
tips?
thanks for your patience
Resolved