Oh, sorry, stm32f411re is the microcontroller. I don't know how to configure compiler. It has the default setting. Double is working if i give the value inside the function. When I'm debugging and running the code the code runs successfully but infinity loop stops.