AnsweredAssumed Answered

How to tell the compiler to use float instead of double for constants.

Question asked by Julien Bouille on Dec 22, 2017
Latest reply on Dec 24, 2017 by Andrew Neil


i noticed then when i declare a constant like this


#define PI 3.141592653


compiler use double instead of float wich is slowing down code execution. Is there a way to tell compiler to use float by default. instread of casting everywere in my code ?


I use keil µVision and C51