fix FloatToStr procedure

Post your requests and ideas on the future development of mikroBasic PRO for AVR.
Post Reply
Author
Message
jet_media
Posts: 39
Joined: 18 Apr 2012 09:13
Location: Iran

fix FloatToStr procedure

#1 Post by jet_media » 02 May 2014 11:28

ex)

dim c as Float
dim c3 as char[30]


c= 19999.1
FloatToStr(c,c3) 'c3 ==> 19999.09960 is fail !

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: fix FloatToStr procedure

#2 Post by marina.petrovic » 06 May 2014 15:12

Hi,

Floating point number that you want to convert into string will be truncated to 5 most significant digits before conversion,
and because of that the result of the conversion is not accurate.

Best regards,
Marina

Post Reply

Return to “mikroBasic PRO for AVR Wish List”