Calculate RX e TX correctly

Hello guys, does anyone know how to calculate the RX and TX correctly when it is not formatted as “-25” and “2” for example, when it comes as 23456 etc or when the CPE sends 25 instead of -25, if anyone can help I appreciate it .


Try the following formula: (X-14999.12)*0.002