Solved

Does VB.Net have a construct for Zettabyte

Posted on 2011-03-08
6
336 Views
Last Modified: 2012-05-11
Does VB.Net have a construct for Zettabyte? It overflows a Long


Dim sizeofZettabyte As Long = 1180591620717411303424

Open in new window

0
Comment
Question by:ruffone
  • 3
  • 2
6 Comments
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 35071089
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
 
LVL 74

Expert Comment

by:käµfm³d 👽
ID: 35071134
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
 
LVL 23

Accepted Solution

by:
wdosanjos earned 500 total points
ID: 35071168
Try the Decimal data type:

Dim sizeofZettabyte As Decimal = 1180591620717411303424D

http://msdn.microsoft.com/en-us/library/xtba3z33%28VS.80%29.aspx
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 74

Expert Comment

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

Good call wdosanjos   = )
0
 
LVL 4

Author Comment

by:ruffone
ID: 35071429
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
 
LVL 4

Author Closing Comment

by:ruffone
ID: 35071693
Thanks wdosanjos
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now