http://www.ninerpedia.org/index.php?title=Right_justification_on_screen&feed=atom&action=historyRight justification on screen - Revision history2024-03-29T08:36:02ZRevision history for this page on the wikiMediaWiki 1.37.1http://www.ninerpedia.org/index.php?title=Right_justification_on_screen&diff=49219&oldid=prevStephen Shaw: add links to ExBas and TI Basic2015-01-05T21:12:46Z<p>add links to ExBas and TI Basic</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 21:12, 5 January 2015</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Right justification on screen when printing variables which have a different length.</div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Right justification on screen when printing variables which have a different length.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker" data-marker="−"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>In Extended BASIC you would use the extended command PRINT USING but in TI <del style="font-weight: bold; text-decoration: none;">Basic </del>you need to carry out the formatting yourself.</div></td><td class="diff-marker" data-marker="+"></td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>In <ins style="font-weight: bold; text-decoration: none;">[[</ins>Extended BASIC<ins style="font-weight: bold; text-decoration: none;">]] </ins>you would use the extended command PRINT USING but in <ins style="font-weight: bold; text-decoration: none;">[[</ins>TI <ins style="font-weight: bold; text-decoration: none;">BASIC]] </ins>you need to carry out the formatting yourself.</div></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><br/></td></tr>
<tr><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Here is a quick routine for right justification (useful when using columns of numbers). </div></td><td class="diff-marker"></td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Here is a quick routine for right justification (useful when using columns of numbers). </div></td></tr>
</table>Stephen Shawhttp://www.ninerpedia.org/index.php?title=Right_justification_on_screen&diff=48455&oldid=prevStephen Shaw: Short article on how to right justify a printout of variables in TI Basic2014-09-16T19:06:23Z<p>Short article on how to right justify a printout of variables in TI Basic</p>
<p><b>New page</b></p><div>Right justification on screen when printing variables which have a different length.<br />
<br />
In Extended BASIC you would use the extended command PRINT USING but in TI Basic you need to carry out the formatting yourself.<br />
<br />
Here is a quick routine for right justification (useful when using columns of numbers). <br />
<br />
The variable to be printed is in the string variable A$ <br />
<br />
To convert numbers to strings use eg STR$(42) <br />
<br />
Place the value of the rightmost column to be used in variable RC: <br />
<br />
<code>X=RC-LEN(A$)</code><br />
<code>FOR C=1 TO X</code><br />
<code>A$=" "&A$ (this adds one space in front of A$)</code><br />
<code>NEXT C</code><br />
<code>PRINT A$</code><br />
<br />
<br />
<br />
[[Category:Programming]]</div>Stephen Shaw