(Arduino Uno + ADXL377) Significant figures question

Hello All,

I am currently working with an ADXL377 accelerometer and since this is an analog sensor, I use analogRead() to read data for each axis . As of now, I use float to get decimal numbers for my raw x, y, and z axes values. I was wondering if there is any way to increase the number of significant digits of my variables. Thank you.

With Regards,

Mr. B.T. Palindrome

I think there is no other than float, with more precision.

If you are trying to print with more digits to the right of the decimal point you can use Serial.print(floatX, number of digits);
So Serial.print(fX, 4); will print 2.2222 for example.