Boolean values: Difference between revisions
Content added Content deleted
(→{{header|Objective-C}}: ++ metafont) |
(→{{header|Perl}}: ++ octave) |
||
Line 115: | Line 115: | ||
As with any other Ocaml data type, there are no automatic conversions of other types to bool. |
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}}== |
=={{header|Perl}}== |