• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

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

0
ruffone
Asked:
ruffone
  • 3
  • 2
1 Solution
 
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
 
wdosanjosCommented:
Try the Decimal data type:

Dim sizeofZettabyte As Decimal = 1180591620717411303424D

http://msdn.microsoft.com/en-us/library/xtba3z33%28VS.80%29.aspx
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now