Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Mon May 12 15:44:49 CEST 2025

Total time taken to generate the page: 0.00953 seconds