Navigation
Synopsis Convert Boolean value to real.
Function real toReal(bool b)
Usage import Boolean;
Description Maps true to 1,0 and false to 0.0.
Examples
rascal>import Boolean;
ok
rascal>toReal(true);
real: 1.0
rascal>toReal(false);
real: 0.0
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.