type.string.integer
0.000001

Converts a string to an integer.

Arguments
no defined arguments
Return Value
The leading characters of the given string as an integer, or 0 if the string does not begin with a number.
something went wrong :(
Converting a string to an integer
Setup
authorization=PROCAUTH
require "proc"

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

123


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