How to remove the 'cm' shown along in the values of ultrasound

hello i am trying to connect the arduino nano to an ev3 robot via bluetooth. But the EV3 only accepts numerics so when we set it for eg: if value=3, stop (this is ev3 code not arduino) But what the arduino sends is 3 'cm'. So is there a way to remove that cm. Expecting a reply, Mishaal

Find the statement that sends the value and modify it so it doesn't send any "cm". I bet if you'll look through your code for the cm itself you can find the line that sends it.