15,616,520 members
See more:
How to convert GB to Bytes without decimal point.
e.g 3.76 GB (4,047,660,432 bytes)
But actual calculated value is 4037269258.24
3.76*(1024*1024*1024)
Posted
Maarten Kools 5-Aug-13 6:42am
Well, you could just use Math.Round[^]. But 4047660432 Bytes isn't exactly the same as 3.76 GB, the 3.76 is a rounded value in itself. You're never going to get the actual number of Bytes from it
Pheonyx 5-Aug-13 7:01am
You cannot because you do not have the original value, you will only ever be able to approximately calculate the original value when your are working backwards from a rounded value.
Richard MacCutchan 5-Aug-13 9:40am
You calculation is wrong: 4,047,660,432 is almost 3.77. Use the windows calculator to check the actual values.

Solution 1

try this :

```String f = Convert.ToString(Math.Round(Convert.ToDouble(3.76) * 1073741824)) + " Bytes";
```

[no name] 5-Aug-13 8:58am
how you have calculate it to get (4,047,660,432 bytes) ??
check google calculation it give else number :

or

http://www.convertunits.com/from/GB/to/byte