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
Re: FP humor [message #57418 is a reply to message #57417] Thu, 05 August 2021 15:45 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14257
Registered: November 2005
Ultimate Member
dolik.rce wrote on Thu, 05 August 2021 15:41
Hi Mirek,

mirek wrote on Thu, 05 August 2021 14:47
....and I was thinking that the lowest possible double is 1e-308...


You made me do some research and learn something new again Smile

To save others the trouble: 1e-308 is smallest normalized value, denormalized values can be around 4.94066e-324. And (not surprisingly) the C++ standard thought about it: https://en.cppreference.com/w/cpp/types/numeric_limits/denor m_min

Best regards,
Honza


Exactly.

But another interesting issue but perhaps not so suprising fact is that if you multiply variable by 0.6 many many times, it eventually reaches the minimal representable value and then stays at it because of rounding rules...
 
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: Mon May 12 01:30:58 CEST 2025

Total time taken to generate the page: 0.03246 seconds