include settings.h and double to float