<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=C_Sharp_long</id>
	<title>C Sharp long - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=C_Sharp_long"/>
	<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=C_Sharp_long&amp;action=history"/>
	<updated>2026-05-19T04:36:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://coderwiki.org/index.php?title=C_Sharp_long&amp;diff=144&amp;oldid=prev</id>
		<title>Dylan: new: info, size, example</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=C_Sharp_long&amp;diff=144&amp;oldid=prev"/>
		<updated>2025-08-19T08:28:51Z</updated>

		<summary type="html">&lt;p&gt;new: info, size, example&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;long&amp;#039;&amp;#039;&amp;#039; [[class]] in [[C Sharp]] is a [[data type]] which can store positive and negative whole numbers in [[Variable|variables]].&lt;br /&gt;
&lt;br /&gt;
See [[Integer]] for generic information about what integers and longs can represent and how they are represented in [[memory]].&lt;br /&gt;
&lt;br /&gt;
== Size ==&lt;br /&gt;
A &amp;#039;&amp;#039;&amp;#039;long&amp;#039;&amp;#039;&amp;#039; in C# is represented by 8 [[Byte|bytes]], or 64 [[Bit|bits]].&lt;br /&gt;
&lt;br /&gt;
This means it can store integral values from &amp;lt;code&amp;gt;-9,223,372,036,854,775,808&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;9,223,372,036,854,775,807&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
For less extreme integers (anything between &amp;lt;code&amp;gt;-2,147,483,648&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;2,147,483,647&amp;lt;/code&amp;gt;), you can use the [[C Sharp int]] data type instead, which uses less space in [[memory]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;cs&amp;quot; line=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
long a;&lt;br /&gt;
long b = 74;&lt;br /&gt;
long c = (long)15.2; // 15&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
</feed>