Packagecom.curlyben.utils
Classpublic class Convert

A utility to aid conversion to and from various data formats.



Public Methods
 MethodDefined by
  
FromBinary(value:String):uint
[static] Converts a base-2 binary string representation of a number into its base-10 integer.
Convert
  
ToBinary(value:int):String
[static] Converts an integer to its binary representation and returns a string.
Convert
Method detail
FromBinary()method
public static function FromBinary(value:String):uint

Converts a base-2 binary string representation of a number into its base-10 integer.

Parameters
value:String — A binary string to convert into an unsigned integer.

Returns
uint — An unsigned integer representing the input binary formatted string.
ToBinary()method 
public static function ToBinary(value:int):String

Converts an integer to its binary representation and returns a string.

Parameters
value:int — An int to perform conversion on.

Returns
String — A string representing a base-2 copy of the input value.