Jump to content

Zero to the zero power: Difference between revisions

Add CLU
(Add Red)
(Add CLU)
Line 278:
1.0
</pre>
 
=={{header|CLU}}==
The CLU reference manual doesn't mention the issue, so the fact that it returns
1 in my case could just be an implementation detail.
 
<lang clu>start_up = proc ()
zz_int: int := 0 ** 0
zz_real: real := 0.0 ** 0.0
po: stream := stream$primary_output()
stream$putl(po, "integer 0**0: " || int$unparse(zz_int))
stream$putl(po, "real 0**0: " || f_form(zz_real, 1, 1))
end start_up</lang>
{{out}}
<pre>integer 0**0: 1
real 0**0: 1.0</pre>
 
=={{header|COBOL}}==
2,135

edits

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