type.number.positive
0.000001

Check if a number is positive.

Arguments
no defined arguments
Return Value
true if the given number is greater than 0, otherwise false.
something went wrong :(
Checking if a number is positive
Setup
authorization=PROCAUTH
require "proc"

client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.number.positive.call(
  42
)
client.type.number.positive.call(
  42
);
curl "https://proc.run/type/number/positive" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/json" \
--data '42'
 

true


Stuck? Want to chat about an idea? Join the community on Discord.