U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » display approximation...
Re: display approximation... [message #35746 is a reply to message #35743] Thu, 15 March 2012 14:56 Go to previous messageGo to previous message
idkfa46 is currently offline  idkfa46
Messages: 155
Registered: December 2011
Experienced Member
...
dl.Clear();
for(int i=1; i<=value; ++i)
{
        double k= value/i;
	if ( k > 5 && k < 45 )
	{
	String s = Format("%.02f", k); // convert to string 
        //double StrDbl(const char *s);// back to double
        dl.Add(s);
	}
}
...


I can't find the right way to convert string to double before adding elements to DropList. How i have to set StrDbl ?!

there are no way to leave them like double and just Display approximate value ?!





 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sizeable().Zoomable()
Next Topic: LogPos (and Logc) - what does it mean?
Goto Forum:
  


Current Time: Sat Apr 25 16:17:35 GMT+2 2026

Total time taken to generate the page: 0.00665 seconds