Hallo,
I am using for my projekt the mikroC for AVR 7.0.1 Compiler latest version.
The function FloatToStr_FixLen is an undeclared identifier because it is not included in the conversion library.
Is there a chance to get this function in the conversion library?
In case of yes, in wich way can I put in this function in the conversion library?
Thank you for your support in advance.
Kind regards
FloatToStr_FixLen is an undeclared identifier
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: FloatToStr_FixLen is an undeclared identifier
Hello,
Unfortunately, function FloatToStr_FixLen is not a part of the conversions library in the latest version of mikroC PRO for AVR and you cannot get this function in the library.
However, you can make a function to trim float number x digits after the dot.
Or you can just trim your text string with setting txt[x] = 0; after calling FloatToStr function.
Kind regards,
Jovana
Unfortunately, function FloatToStr_FixLen is not a part of the conversions library in the latest version of mikroC PRO for AVR and you cannot get this function in the library.
However, you can make a function to trim float number x digits after the dot.
Or you can just trim your text string with setting txt[x] = 0; after calling FloatToStr function.
Kind regards,
Jovana
Re: FloatToStr_FixLen is an undeclared identifier
Dear Jovana,
thanks a lot for your reply in this case. I found this function in the help function of this C-compiler.
Therefore I thougthed this function should be available.
Kind regards
Peter
thanks a lot for your reply in this case. I found this function in the help function of this C-compiler.
Therefore I thougthed this function should be available.
Kind regards
Peter
jovana.medakovic wrote:Hello,
Unfortunately, function FloatToStr_FixLen is not a part of the conversions library in the latest version of mikroC PRO for AVR and you cannot get this function in the library.
However, you can make a function to trim float number x digits after the dot.
Or you can just trim your text string with setting txt[x] = 0; after calling FloatToStr function.
Kind regards,
Jovana
- jovana.medakovic
- mikroElektronika team
- Posts: 986
- Joined: 18 Dec 2018 10:36
Re: FloatToStr_FixLen is an undeclared identifier
Hi Peter,
The help file is not updated yet.
I apologize for the inconvenience.
Kind regards,
Jovana
The help file is not updated yet.
I apologize for the inconvenience.
Kind regards,
Jovana