Jump to content

Boolean values: Difference between revisions

(→‎{{header|Perl}}: ++ octave)
Line 115:
 
As with any other Ocaml data type, there are no automatic conversions of other types to bool.
 
=={{header|Octave}}==
Octave uses <tt>true</tt> (1) and <tt>false</tt> (0). The class of a variable holding a boolean value is ''logical'', which however can be casted to a numeric class, so that <code>r = true; r * 2</code> gives 2 as result.
 
=={{header|Perl}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.