8.5.8 pgm_read_float Macro
Read a floating-point object from the program space with a near address.
Include
<avr/pgmspace.h>
Prototype
float pgm_read_word(unsigned int);
Remarks
Read a float
object from the program space with a 16-bit
(near) address.
Example
#include <avr/pgmspace.h>
const float PROGMEM romObj = 1.23;
int main(void)
{
float val;
val = pgm_read_float(&romObj);
}