Convert GB to Byte

Steven Young 261 Reputation points
2021-06-25T06:43:37.33+00:00

Dim b As Long = 5 * 1024 * 1024 * 1024

Why it's not right?

Developer technologies VB
{count} votes

Accepted answer
  1. Viorel 122.6K Reputation points
    2021-06-25T09:27:45.207+00:00

    Try this:

    Dim b As Long = 5 * 1024L * 1024 * 1024
    

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.