Does VB.Net have a construct for Zettabyte

Does VB.Net have a construct for Zettabyte? It overflows a Long


Dim sizeofZettabyte As Long = 1180591620717411303424

Open in new window

LVL 4
ruffoneAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
wdosanjosConnect With a Mentor Commented:
Try the Decimal data type:

Dim sizeofZettabyte As Decimal = 1180591620717411303424D

http://msdn.microsoft.com/en-us/library/xtba3z33%28VS.80%29.aspx
0
 
käµfm³d 👽Commented:
Not to my knowledge, but you could create a struct consisting of several longs and implement the appropriate functions to make the struct more "natural" in its use.
0
 
käµfm³d 👽Commented:
Actually, it might be a bit more involved than that. The IDE might not even let you put the number in as a literal--you might have to load it as a string  : (
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
käµfm³d 👽Commented:
Haha...  Silly me. I forgot about the size of Decimal!

Good call wdosanjos   = )
0
 
ruffoneAuthor Commented:
Thanks guys.
How might I create a Type Zettabyte so that I may do a DirectCast or a CType or something on the type

Thanks
0
 
ruffoneAuthor Commented:
Thanks wdosanjos
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.