<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.antiperfect.org/index.php?action=history&amp;feed=atom&amp;title=Python%3ANumbers</id>
	<title>Python:Numbers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.antiperfect.org/index.php?action=history&amp;feed=atom&amp;title=Python%3ANumbers"/>
	<link rel="alternate" type="text/html" href="https://wiki.antiperfect.org/index.php?title=Python:Numbers&amp;action=history"/>
	<updated>2026-10-18T01:12:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.antiperfect.org/index.php?title=Python:Numbers&amp;diff=1263&amp;oldid=prev</id>
		<title>Hdridder: Created page with &quot;NOTE: Numbers starting with 0 are interpreted as octal number.  Look at this: &lt;syntaxhighlight lang=python&gt; &gt;&gt;&gt; a = 0123 &gt;&gt;&gt; print(a) 83 &gt;&gt;&gt; type(a) &lt;type &#039;int&#039;&gt; &lt;/syntaxhighl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.antiperfect.org/index.php?title=Python:Numbers&amp;diff=1263&amp;oldid=prev"/>
		<updated>2022-01-27T13:43:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;NOTE: Numbers starting with 0 are interpreted as octal number.  Look at this: &amp;lt;syntaxhighlight lang=python&amp;gt; &amp;gt;&amp;gt;&amp;gt; a = 0123 &amp;gt;&amp;gt;&amp;gt; print(a) 83 &amp;gt;&amp;gt;&amp;gt; type(a) &amp;lt;type &amp;#039;int&amp;#039;&amp;gt; &amp;lt;/syntaxhighl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;NOTE: Numbers starting with 0 are interpreted as octal number.&lt;br /&gt;
&lt;br /&gt;
Look at this:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=python&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; a = 0123&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; print(a)&lt;br /&gt;
83&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; type(a)&lt;br /&gt;
&amp;lt;type &amp;#039;int&amp;#039;&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;int(x)&lt;br /&gt;
:Convert x into an integer&lt;br /&gt;
;hex(x)&lt;br /&gt;
:Convert x into an hexadecimal number 0x....&lt;br /&gt;
;oct(x)&lt;br /&gt;
:Convert x into an octal number 0....&lt;br /&gt;
&lt;br /&gt;
See [[Python:Strings#Advanced]] for conversions by format.&lt;/div&gt;</summary>
		<author><name>Hdridder</name></author>
	</entry>
</feed>