• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick Question: In C programming, does a variable declared as double hold the largest positve number? Thanks!!

CM4

Member
As Above.


Just making sure, float can hold over 32 thousand positives numbers and double can hold approx 63 thousand positive numbers. Hence double can hold the largest positive number. Is this right?

Thanks 🙂
 
"
Just making sure, float can hold over 32 thousand positives numbers and double can hold approx 63 thousand positive
numbers. "


What do you mean a float can hold over 32 thousand position numbers
(you mess this up with short int?)

a float can handle decimal(+/-) numbers from 1.1*10^-38 to 3.4*10^38

a double can handle decimal(+/-) numbers from 2.2*10^-308 to 1.7*10^308

those are from ANSI C btw.
 
Back
Top