Anonymous user
Boolean values: Difference between revisions
→{{header|Perl}}: ++ octave
(→{{header|Objective-C}}: ++ metafont) |
(→{{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}}==
|