How to save a float variable to the eeprom

You don’t need the library. If you read further in the link, you will see that the library just uses the built in eeprom functions.

Simple program to read/save a float value to four bytes starting at eeprom location zero.

#include <avr/eeprom.h>

float x=1.234;

void setup()
{
  //read value of x from eeprom address 0 upon startup
  eeprom_read_block((void*)&x, (void*)0, sizeof(float));
    // ...
}
void loop()
{

    // if user pushes the "Save" button, save the value of x in location 0
    if (digitalRead(13) == HIGH)
      eeprom_write_block((const void*)&x, (void*)0, sizeof(float));
  //...
}