org.as2lib.core.BasicClass +--org.as2lib.io.file.BitFormat
Formater for bit. This class gets used for formatting bits in Kilo/Mega/Giga/Tera bits.
new BitFormat()
public function setFloatingPoints(fp:Number):BitFormat
Sets the used amount of values after the comma.
fp | Amount of characters after the floating point. |
The current instance for faster access.
IllegalArgumentException | if you pass |
public function getKiloBit(Void):Number
Getter for the value in kilobit.
Value in kilobit.
public function getKiloBytes(Void):Number
Getter for the value in kilobytes.
Value in kilobytes.
public function getMegaBit(Void):Number
Getter for the value in megabit.
Value in megabit.
public function getMegaBytes(Void):Number
Getter for the value in megabytes.
Value in megabytes.
public function getGigaBit(Void):Number
Getter for the value in gigabit.
Value in gigabit.
public function getGigaBytes(Void):Number
Getter for the value in gigabytes.
Value in gigabytes.
public function getTeraBit(Void):Number
Getter for the value in terabit.
Value in terabit.
public function getTeraBytes(Void):Number
Getter for the value in terabytes.
Value in terabytes.
public function toString():String
Extended toString method for a well formatted bitvalue. This method uses the next matching size and adds the matching Shortname for it. Examples: new BitFormat(1).toString(); // 1b new BitFormat(1234).toString(); // 1.21Kb new BitFormat(15002344).toString(); // 14.31Mb
bits as string with correct ending.
toString() in org.as2lib.core.BasicInterface