← All procedures
rational.floor
This function gives the greatest integer that is not more than the value. The result is exact.
CLI- Package
- @procedures/rational · README
- Path
["rational","floor"]- CLI
mark rational floor --a <object>- As data
{"$proc":["rational","floor"],"input":{}}
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/rational/register"; // registers its procedures
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["rational","floor"], { a: {} });
console.log(JSON.stringify(result));From the command line
$ mark rational floor --a <object>
As data, in a program
{ "$proc": ["rational", "floor"], "input": { "a": {} } }Input
Output
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"a": {
"type": "object",
"properties": {
"n": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]*)$",
"x-procedures-codec": "bigint"
},
"d": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]*)$",
"x-procedures-codec": "bigint"
}
},
"required": [
"n",
"d"
],
"additionalProperties": {}
}
},
"required": [
"a"
],
"additionalProperties": false
},
"output": {
"type": "object",
"properties": {
"n": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]*)$",
"x-procedures-codec": "bigint"
},
"d": {
"type": "string",
"pattern": "^-?(0|[1-9][0-9]*)$",
"x-procedures-codec": "bigint"
}
},
"required": [
"n",
"d"
],
"additionalProperties": {}
}
}