jessvi created page: Lab5 authored by Jesper Kurtzmann Svith's avatar Jesper Kurtzmann Svith
...@@ -83,8 +83,7 @@ In the datalogger class we had to replace FileOutputStream with BufferedOutputSt ...@@ -83,8 +83,7 @@ In the datalogger class we had to replace FileOutputStream with BufferedOutputSt
> dos.flush(); > dos.flush();
> >
> String iString = iField.getText(); > String iString = iField.getText();
> float i = new Float(iString).intValue(); // The I value needs to be a float > float i = new Float(iString).intValue(); // The I value needs to be a float value
> value in
> dos.writeFloat(i); // order to send decimal numbers. > dos.writeFloat(i); // order to send decimal numbers.
> dos.flush(); > dos.flush();
> >
... ...
......