Floating-point
Posted: 01 Oct 2010 16:18
Hello again my friends!
I´m having some difficulties to solve this problemes.
i´m reading from ADC 10bits , and i want to do this simple operation !
Ex: ADC value = 700;
700/120=5,83333333
I want to read 5,83333333 but instead i only read 5 !
Or:
51*3.14=160,14 but instead i only read 160
I want to read and write Floating-point numbers.
Can anyone healp me?
Thanks
I´m having some difficulties to solve this problemes.
i´m reading from ADC 10bits , and i want to do this simple operation !
Ex: ADC value = 700;
700/120=5,83333333
I want to read 5,83333333 but instead i only read 5 !
Or:
51*3.14=160,14 but instead i only read 160
I want to read and write Floating-point numbers.
Can anyone healp me?
Thanks