Maximum value stored in double

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm sure this is in the documentation, but I'm blowed if I can find it.
What's the maximum value tht can be represented in a double?

Four legs good, two legs bad, three legs stable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
E:\avr[i386_vc]>avr-gcc -E -dM test.c | grep e+
#define __LDBL_MAX__ 3.40282347e+38L
#define __DBL_MAX__ 3.40282347e+38
#define __FLT_MAX__ 3.40282347e+38F

Post 50,000 (for the 2nd time today).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks, Cliff. I think 3.4 e+38 will be big enough.
In fact 7.0 e+12 would have sufficed, so I might use an int64_t instead...

Is it just me, or have Microsoft really messed up be separating the "programmer's" functions on the Windows calulator, sometimes I want to enter hex digits, convert to decimal and then manipulate. The programmer's view truncates all the divisions, even when switched to decimal. Hey ho, I'll just have to run the XP calculator in a virtual box.

Four legs good, two legs bad, three legs stable.