About 20,900,000 results
Open links in new tab
  1. Using Boolean values in C - Stack Overflow

    bool and _Bool, and true and false are language keywords for boolean types. bool / _Bool is a type that can hold either the value true or false. Logical operators !, ||, and && can be used.

  2. Convert a string to a Boolean in C# - Stack Overflow

    Additionally, there is bool.TryParse(string, out bool). It is equivalent to bool.Parse, with the difference that it returns true if it was able to convert the value and false otherwise.

  3. scripting - How to pass boolean values to a PowerShell script from …

    The question is about calling the PowerShell CLI (powershell.exe) from cmd.exe, invoking a script that already has as [bool] parameter defined. You're answering an unrelated question.

  4. boolean - What is bool in C++? - Stack Overflow

    Bool is a well-defined primitive integral type, just like int, char, etc. It also has mathematical conversions to other integral types, which can sometimes be confusing for people, but I don't …

  5. Converting from a string to boolean in Python - Stack Overflow

    How do I convert a string into a boolean in Python? This attempt returns True: >>> bool ("False") True

  6. c - error: unknown type name ‘bool’ - Stack Overflow

    C99 has a native boolean type called _Bool. The <stdbool.h> header provides a typedef for it called bool, along with true and false.

  7. c++ - How to correctly use Boolean functions? - Stack Overflow

    When creating functions or using them always remember to start with the signature. Think what will this function need to work with, and what will it return. You need to return if something is …

  8. python - Truth value of a Series is ambiguous. Use a.empty, a.bool ...

    I want to filter my dataframe with an or condition to keep rows with a particular column's values that are outside the range [-0.25, 0.25]. I tried: df = df[(df['col'] &lt; -0.25) or (df['col'] &gt...

  9. python - Parsing boolean values with argparse - Stack Overflow

    I would like to use argparse to parse boolean command-line arguments written as "--foo True" or "--foo False". For example: my_program --my_boolean_flag False However, the following test …

  10. What is the printf format specifier for bool? - Stack Overflow

    1137 There is no format specifier for bool types. However, since any integral type shorter than int is promoted to int when passed down to printf() 's variadic arguments, you can use %d: