Skip to main content

Scalar functions

integer

Commentary

added in 0.0.5

Apply's floor to a number to convert it to an integer.


Examples

Generating integers

{
"_gen": "integer",
"n": {
"_gen": "normalDistribution",
"mean": 40,
"sd": 5
}
}
[
36,
35,
41,
45,
39
]

Specification

JSON schema

{
"type": "object",
"properties": {
"n": {
"type": "object"
}
},
"required": [
"n"
]
}