Infinity: Difference between revisions

Content added Content deleted
m (→‎{{header|NS-HUBASIC}}: NS-HUBASIC example added)
(added langur language example)
Line 698: Line 698:
false
false
true false</pre>
true false</pre>

=={{header|Langur}}==
<lang Langur>val .isPosInf = f isInfinity(.x) and isPosNumType(.x)
val .x = Infinity
val .y = -Infinity
val .z = 1

writeln ".x: ", .x, ": ", .isPosInf(.x)
writeln ".y: ", .y, ": ", .isPosInf(.y)
writeln ".z: ", .z, ": ", .isPosInf(.z)</lang>

{{out}}
<pre>.x: Infinity: true
.y: -Infinity: false
.z: 1: false</pre>


=={{header|Lasso}}==
=={{header|Lasso}}==