Jump to content

Infinity: Difference between revisions

317 bytes added ,  2 years ago
no edit summary
(Added Arturo implementation)
No edit summary
Line 1,517:
IndefiniteNumber = -1,#IND (FFF8000000000000)
</pre>
 
=={{header|Vlang}}==
<lang vlang>import math
fn main() {
mut x := 1.5 // type of x determined by literal
// that this compiles demonstrates that PosInf returns same type as x,
// the type specified by the task.
x = math.inf(1)
println('$x ${math.is_inf(x, 1)}') // demonstrate result
}</vlang>
 
=={{header|Wren}}==
338

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.