type.number.equal0.000001
Checks a number for equality.
Arguments
value
The value to compare to the given input.Return Value
true
if the number input is equal to the given value, otherwise false
.something went wrong :(
Checking a number for equality
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.type.number.equal.call(
42, value: 42
)
client.type.hash.equal.call(
42, {value: 42}
);
curl "https://proc.run/type/number/equal" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: application/vnd.proc+json" \
--data '[[">>", ["%%", 42]], ["$$", "value", ["%%", 42]]]'
true
Stuck? Want to chat about an idea? Join the community on Discord.