Skip to main content
Arduino

Timeline for Read float and long from external EEPROM chip

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Dec 7, 2017 at 22:22 comment added Alphy13 Thanks for pointing that out. In case anyone has a similar issue: Serial.println(x, 10); gave the precision i needed to see a result.
Dec 7, 2017 at 12:40 vote accept Alphy13
Dec 7, 2017 at 8:28 comment added Edgar Bonet @Alphy13: I am pretty sure you got the correct number. However, Serial.println(6.8790985e-7); prints "0.00".
Dec 7, 2017 at 3:19 comment added Alphy13 In reading the float, I correctly get 00110101-00111000-10101000-11001110 from the EEPROM but running it through the union snipit you show, gives 0.0. It should be 6.8790985E-7.
Dec 6, 2017 at 9:46 history edited Edgar Bonet CC BY-SA 3.0
union works with any data type.
Dec 6, 2017 at 9:30 history answered Edgar Bonet CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /