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 » Coffee corner » FP humor
FP humor [message #57415] Thu, 05 August 2021 14:47 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
CONSOLE_APP_MAIN
{
	x = 1;
	for(int i = 0; i < 10000; i++)
		x *= 0.6;
	DDUMP(Sprintf("%.16g", x));
}


Sprintf("%.16g", x) = 4.940656458412465e-324


....and I was thinking that the lowest possible double is 1e-308...

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: The serial number is getting smaller.
Next Topic: Things are tricky with double<->text conversions
Goto Forum:
  


Current Time: Fri Apr 26 17:12:18 CEST 2024

Total time taken to generate the page: 0.03087 seconds