AnsweredAssumed Answered

stm8l051f3 can do for floating operation ????

Question asked by edmond yun on Jul 9, 2018
Latest reply on Jul 16, 2018 by Philipp Krause



I have a question as to whether stm8L051F3 can do/calculate the floating operation or not,

please help to let me know it,


currently I can't check it with printf function, because if using the library with tool option, 

I got the size over error,


example :


float devided_Voltage = 0;
float high_Voltage = 0;
devided_Voltage = (float)(rawADValue / ADC_MAX_RESOLUTION * ADC_MAX_INPUT);

high_Voltage = (devided_Voltage * (RESISTER_R8 + RESISTER_R9)) / RESISTER_R9;