Heronian triangles: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: put statements on same line instead of splitting them for perusability. |
m →{{header|REXX}}: added another programming note in the REXX section header. |
||
Line 679: | Line 679: | ||
Note that the '''iSqrt''' subroutine doesn't use floating point. |
Note that the '''iSqrt''' subroutine doesn't use floating point. |
||
The REXX statement (line 22) ''if pos(.,_)\==0'' isn't normally used for a general-purpose check if a number is an integer (or not), |
|||
<br>this version was used because it's faster then the usual statement: ''if \datatype(_,'Whole')'' and because the number is well-formed. |
|||
This REXX program doesn't need to explicitly sort the triangles. |
This REXX program doesn't need to explicitly sort the triangles. |