FloatToStr_FixLen is an undeclared identifier

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
pitbytes
Posts: 10
Joined: 30 Mar 2013 12:26
Location: Germany

FloatToStr_FixLen is an undeclared identifier

#1 Post by pitbytes » 10 Jan 2020 17:22

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

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: FloatToStr_FixLen is an undeclared identifier

#2 Post by jovana.medakovic » 13 Jan 2020 13:03

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

pitbytes
Posts: 10
Joined: 30 Mar 2013 12:26
Location: Germany

Re: FloatToStr_FixLen is an undeclared identifier

#3 Post by pitbytes » 14 Jan 2020 21:06

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

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

User avatar
jovana.medakovic
mikroElektronika team
Posts: 986
Joined: 18 Dec 2018 10:36

Re: FloatToStr_FixLen is an undeclared identifier

#4 Post by jovana.medakovic » 15 Jan 2020 08:48

Hi Peter,

The help file is not updated yet.
I apologize for the inconvenience.

Kind regards,
Jovana

Post Reply

Return to “mikroBasic PRO for AVR General”