Math and Computation

Base Conversion

Downloadbase_convert(number,oldbase,newbase)   Returns a string of digits representing the given number converted from one base to another. Downloadbin_to_dec(bin)   Returns a non-negative integer converted from the given string of binary digits. Downloadbin_to_fraction(str)   Returns the decimal fraction that represents the given binary string. Downloadbin_to_hex(bin)   Returns a string of hexadecimal digits converted from the given string of binary digits. Downloaddec_to_bin(dec)   Returns a string of binary digits converted from the given non-negative integer. Downloaddec_to_hex(dec)   Returns a string of hexadecimal digits converted from the given non-negative integer. Downloaddec_to_oct(dec)   Returns a string of octal digits converted from the given non-negative integer. Downloaddec_to_roman(dec)   Returns the given integer expressed as a roman numeral string. Downloadfraction_to_bin(value,size)   Returns a string of binary digits representing the given decimal fraction. Downloadhex_to_bin(hex)   Returns a string of binary digits converted from the given string of hexadecimal digits. Downloadhex_to_dec(hex)   Returns a non-negative integer coverted from a string of hexadecimal digits. Downloadoct_to_dec(oct)   Returns a non-negative integer coverted from a string of octal digits. Downloadroman_to_dec(dec)   Returns the given number converted from a roman numeral string.

Binary Data Encoding and Decoding

Downloadbytes_to_b64(str)   Returns a string of base64 digits (RFC 3548) converted from the given string of bytes. Downloadbytes_to_bin(str)   Returns a string of binary digits converted from the given string of bytes. Downloadbytes_to_hex(str)   Returns a string of hexadecimal digits converted from the given string of bytes. Downloadb64_to_bytes(b64)   Returns a string of bytes converted from the given string of base64 digits (RFC 3548). Downloadbin_to_bytes(bin)   Returns a string of bytes converted from the given string of binary digits. Downloadhex_to_bytes(hex)   Returns a string of bytes converted from the given string of hexadecimal digits. Downloaddecode_real_double(str)   Returns a real value decoded from an 8-byte string in IEEE 754 double precision format. Downloadencode_real_double(n)   Returns the given value as an 8-byte string in IEEE 754 double precision format. Downloadvalue_min_bits(n,size)   Returns the smallest number of bits that can be used to store the given value. Downloadword_max_value(length,size)   Returns the largest integer that can be stored in the given number of words.

Message Digest

Downloadcrc16(str,mode)   Returns a CRC16-CCITT hash value for the given string. Downloadmd2(str)   Returns an MD2 hash (RFC 1319) for the given string. Downloadmd5(str)   Returns an MD5 hash (RFC 1321) for the given string. Downloadstring_soundex(str)   Returns the Soundex value of the given string.

Comments? Click to Comment