You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.
This is an old revision of the document!
integer llBase64ToInteger(string base64str)
Converts a string containing an integer in Base-64 representation to integer. Base-64 is a fairly compact way to store any arbitrary 32-bit integer in a string, especially if the numbers can usually be big.
A string expressed in Base-64 that represents the four bytes of a 32-bit integer.
The integer that the string represents, or zero if the string is more than 8 characters long.
integer i; i = llBase64ToInteger("ABCDEF=="); // sets i to 1082128 // (A = 000000, B = 000001, C = 000010, ... so the binary // number is 00000000000100001000011100010000 which // in decimal is 1082128; note some bits of the binary // representation of F are truncated) i = llBase64ToInteger("ABCDEF"); // same as above i = llBase64ToInteger("ABCDEA"); // same as above i = llBase64ToInteger(""); // sets i to some number between 0 and 16777215 // (the appended 0 goes to the most significant byte and the rest are filled with garbage)