stanleyhuangyc / ArduinoOBD

OBD-II library and sketches for Arduino
http://freematics.com
977 stars 519 forks source link

Get values with decimal places #15

Closed matinzk closed 10 years ago

matinzk commented 10 years ago

I have an issue where by I need the values to be retrieved as double/float with 1 or 2 decimal places.

For example MAF (Mass Air Flow) needs to have at least 1 decimal place, but I always receive it as integer or a whole number.

I understand that some of the functions are returning values as 'int', but is there a way to resolve this?

Thanks.

azzamsaziz commented 10 years ago

Arduino doesn't use decimal places I believe.

matinzk commented 10 years ago

I managed to sort this out.