Is Positive

Check if a number is positive

bdambrosio 307b41a 3 files · 1.7 KB Updated

File contents

Is Positive

Checks if the input value is a positive number (greater than zero).

Purpose

Simple boolean condition for numeric validation and control flow.

Input Format

Accepts:

  • Integer or float value
  • String representation of number

Output Format

Returns boolean:

  • True if value > 0
  • False otherwise

Examples

Input: 5 Output: True

Input: -3 Output: False

Input: "42" Output: True

bdambrosio/cognitive_workbench/tree/main/src/tools_out/is-positive commit 307b41a334

Frequently asked questions

npx skillmds@latest add bdambrosio/is-positive