string_to_float

Post your requests and ideas on the future development of mikroBasic PRO for 8051.
Post Reply
Author
Message
foravr
Posts: 130
Joined: 11 May 2009 19:34

string_to_float

#1 Post by foravr » 14 Apr 2010 22:29

Hi,
that is a very, very, very great wish: A conversion library: string to float. When i do it with the means of basic there always is a conversion error of about 1.0 E-6.
2.5 gets 2.4999999.
The wish concret:
sub function strtofloat(dim byref numstr as string[13]) as float
where numstr represents a float number like "18.045673"

Since i use all of your basic compilers - i could have placed this wish in every basic pro forum. but this forum looks so empty...
I think such a library is not only interesting for basic users...

foravr

Post Reply

Return to “mikroBasic PRO for 8051 Wish List”