Jump to content

Boolean values: Difference between revisions

m
→‎{{header|R}}: Text clarification
No edit summary
m (→‎{{header|R}}: Text clarification)
Line 248:
 
=={{header|R}}==
Similarly to Octave, R uses <tt>TRUE</tt> and <tt>FALSE</tt>, kept in variable of class logical, which is silently casted to 1 (TRUE) or 0 (FALSE) if used as numeric value. So,The itopposite is also true even the opposite: the value 0 can be used as FALSE, and non-zero numbers as TRUE.
 
The values T and F are given the values TRUE and FALSE respectively (for compatibility with S-Plus), though these may be changed to other values by the user.
 
=={{header|Ruby}}==
Cookies help us deliver our services. By using our services, you agree to our use of cookies.