Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 39
  • Last Modified:

COnvert Memory to GB

i am using a from to display memory status and usage.i would like to have it converted as GB displayed in the task manager.I need a formula that will convert  2147483647  to gb.

thanks
0
Svgmassive
Asked:
Svgmassive
  • 2
2 Solutions
 
Rey Obrero (Capricorn1)Commented:
just divide the value by 1,000,000,000  ( 1 billion)
0
 
Shaun KlineLead Software EngineerCommented:
A kilobyte is 1024 bytes.
A megabyte is 1024 kilobytes.
A gigabyte is 1024 megabytes.

Divide your number by 1024 * 1024 * 1024, or 1,073,741,824 for an exact amount. To get an approximate value, use Rey's answer.
0
 
Shaun KlineLead Software EngineerCommented:
Both provided solutions answer the question asked.
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.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

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