-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_so.xml
More file actions
4 lines (4 loc) · 1.44 KB
/
test_so.xml
File metadata and controls
4 lines (4 loc) · 1.44 KB
1
2
3
4
<posts>
<row Id="7" PostTypeId="2" ParentId="4" CreationDate="2008-07-31T22:17:57.883" Score="446" Body="<p>An explicit cast to <code>double</code> like this isn't necessary:</p>

<pre><code>double trans = (double) trackBar1.Value / 5000.0;
</code></pre>

<p>Identifying the constant as <code>5000.0</code> (or as <code>5000d</code>) is sufficient:</p>

<pre><code>double trans = trackBar1.Value / 5000.0;
double trans = trackBar1.Value / 5000d;
</code></pre>
" OwnerUserId="9" LastEditorUserId="5496973" LastEditDate="2019-10-21T14:03:54.607" LastActivityDate="2019-10-21T14:03:54.607" CommentCount="0" ContentLicense="CC BY-SA 4.0" />
<row Id="9" PostTypeId="1" AcceptedAnswerId="1404" CreationDate="2008-07-31T23:40:59.743" Score="1863" ViewCount="611047" Body="<p>Given a <code>DateTime</code> representing a person's birthday, how do I calculate their age in years? </p>
" OwnerUserId="1" LastEditorUserId="170931" LastEditorDisplayName="Rich B" LastEditDate="2020-04-15T12:20:34.657" LastActivityDate="2020-04-15T12:20:34.657" Title="In C#, how do I calculate someone's age based on a DateTime type birthday?" Tags="<c#><.net><datetime>" AnswerCount="61" CommentCount="8" FavoriteCount="456" CommunityOwnedDate="2011-08-16T19:40:43.080" ContentLicense="CC BY-SA 4.0" />
</posts>