SmartCarApp/app/src/main/java/com/example/smartcarapp/UsefulFunctions.java
//takes the string, converts it into a double and then truncates it

takes the string, converts it into a double and then truncates it
takes the string converts it into a double and then truncates it
public static int convertToInt(MqttMessage result){
        double value = Double.parseDouble(result.toString());
        value = value/100;
        int temp = (int) value;
        return temp;
    }
public static int convertToInt ( MqttMessage result ) { double value = Double . parseDouble ( result . toString ( ) ) ; value = value / 100 ; int temp = ( int ) value ; return temp ; }
takes the string, converts it into a double and then truncates it
takes the string converts it into a double and then truncates it