<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Bin</id>
		<title>Core Function Bin - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Bin"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;action=history"/>
		<updated>2026-05-16T10:05:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4982&amp;oldid=prev</id>
		<title>UberFoX: 2 revisions</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4982&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:51Z</updated>
		
		<summary type="html">&lt;p&gt;2 revisions&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4981&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4981&amp;oldid=prev"/>
				<updated>2014-11-29T01:03:58Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 01:03, 29 November 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4208&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Bin( &lt;args&gt; ) &lt;/pre&gt;  === Description ===  Create a new binary variable.  === Parameters ===  ==== args ====  One or more things to place into the new binary variable.  ===...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4208&amp;oldid=prev"/>
				<updated>2014-08-12T22:39:02Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Bin( &amp;lt;args&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Create a new binary variable.  === Parameters ===  ==== args ====  One or more things to place into the new binary variable.  ===...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Bin( &amp;lt;args&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Create a new binary variable.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== args ====&lt;br /&gt;
&lt;br /&gt;
One or more things to place into the new binary variable.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Returns the new binary variable.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
Using bin() to create binary:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$bin = bin(72, 101, 108, 108, 111);&lt;br /&gt;
printr $bin;&lt;br /&gt;
// Prints:&lt;br /&gt;
// Binary&lt;br /&gt;
// (&lt;br /&gt;
//     [0] =&amp;gt; 72&lt;br /&gt;
//     [1] =&amp;gt; 101&lt;br /&gt;
//     [2] =&amp;gt; 108&lt;br /&gt;
//     [3] =&amp;gt; 108&lt;br /&gt;
//     [4] =&amp;gt; 111&lt;br /&gt;
// )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Of course bin() can use hex:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$bin = bin(0x48, 0x65, 0x6C, 0x6C, 0x6F);&lt;br /&gt;
printr $bin;&lt;br /&gt;
// Prints:&lt;br /&gt;
// Binary&lt;br /&gt;
// (&lt;br /&gt;
//     [0] =&amp;gt; 72&lt;br /&gt;
//     [1] =&amp;gt; 101&lt;br /&gt;
//     [2] =&amp;gt; 108&lt;br /&gt;
//     [3] =&amp;gt; 108&lt;br /&gt;
//     [4] =&amp;gt; 111&lt;br /&gt;
// )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Binary will always try print as an ASCII string example&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$bin = bin(0x48, 0x65, 0x6C, 0x6C, 0x6F);&lt;br /&gt;
say $bin;&lt;br /&gt;
// Prints:&lt;br /&gt;
// Hello&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Bin() supports a number of cool stuff like sequences&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
$bin = bin(@'A', 'B'..'G', 0x10..0x15, 5..8);&lt;br /&gt;
printr $bin;&lt;br /&gt;
say BinaryExpand($bin);&lt;br /&gt;
// Prints&lt;br /&gt;
// Binary&lt;br /&gt;
// (&lt;br /&gt;
//     [0] =&amp;gt; 65&lt;br /&gt;
//     [1] =&amp;gt; 66&lt;br /&gt;
//     [2] =&amp;gt; 67&lt;br /&gt;
//     [3] =&amp;gt; 68&lt;br /&gt;
//     [4] =&amp;gt; 69&lt;br /&gt;
//     [5] =&amp;gt; 70&lt;br /&gt;
//     [6] =&amp;gt; 71&lt;br /&gt;
//     [7] =&amp;gt; 16&lt;br /&gt;
//     [8] =&amp;gt; 17&lt;br /&gt;
//     [9] =&amp;gt; 18&lt;br /&gt;
//     [10] =&amp;gt; 19&lt;br /&gt;
//     [11] =&amp;gt; 20&lt;br /&gt;
//     [12] =&amp;gt; 21&lt;br /&gt;
//     [13] =&amp;gt; 5&lt;br /&gt;
//     [14] =&amp;gt; 6&lt;br /&gt;
//     [15] =&amp;gt; 7&lt;br /&gt;
//     [16] =&amp;gt; 8&lt;br /&gt;
// )&lt;br /&gt;
// 00 | 41 42 43 44 45 46 47 10 11 12 13 14 15 05 06 07 ABCDEFG.........&lt;br /&gt;
// 01 | 08 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- .&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4980&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Bin( &lt;args&gt; ) &lt;/pre&gt;  === Description ===  Create a new binary variable.  === Parameters ===  ==== args ====  One or more things to place into the new binary variable....&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Bin&amp;diff=4980&amp;oldid=prev"/>
				<updated>2014-08-12T22:38:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Bin( &amp;lt;args&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Create a new binary variable.  === Parameters ===  ==== args ====  One or more things to place into the new binary variable....&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:38, 12 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>