30 Dec, 2006, Guest wrote in the 1st comment:
Votes: 0
Ever wondered just how large certain data types are? Have some fun with this: http://www.mudbytes.net/index.php?a=past...

Darien pointed me toward this and I figured I'd have a go at it. Just toss the code into a cpp file, type g++ filename.cpp, then ./a.out to see the results. long double is freakin huge :P
30 Dec, 2006, Jindrak wrote in the 2nd comment:
Votes: 0
I wrote a similar command for my Mud a couple years ago so I could have it as a quick reference. Some times it's nice for a quick reminder at 2 am and that 5th cup of coffee….
31 Dec, 2006, Guest wrote in the 3rd comment:
Votes: 0
And for anyone who is looking at that going "huh?", here's an example of what it output on an Athlon XP, 32 bit:

Quote
Short : 32767
UShort : 65535
Int : 2147483647
UInt : 4294967295
Long : 2147483647
ULong : 4294967295
LLong : 9223372036854775807
ULLong : 18446744073709551615
Double : 1.79769e+308
LDouble : 1.18973e+4932


Yes, those "long long" and double values are right. Damn huge :P
0.0/3