Is Positive

Check if a number is positive

bdambrosio Updated 10 repo stars

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 commit 307b41a334

Frequently asked questions

npx get-skill add bdambrosio/is-positive