Hi Thomas,
http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html#divide%28java.math.BigInteger%29
explains how to perform operation on BigIntegers.
So in your case just
size.divide(BigInteger.valueOf(1024*1024)).longValue() shall work.
Nikolay.
Thomas Trepper пишет:
Hi all,
com.sun.xml.ws.commons.virtualbox_3_1.IMedium.getSize() returns in
java a BigInteger und the doku says, this size is in Bytes.
How do I convert it into MB? Are 1000 or 1024 Bytes a MB?
(The LogicalSize is already in MB)
Sorry for this stupid question and thanks a lot in advance.
Thomas
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev