number

Creates a numeric property definition (supports decimals).

Example

property("score") {
number {
description = "User score"
minimum = 0.0
maximum = 100.0
multipleOf = 0.5
}
}

Return

A configured NumericPropertyDefinition with type "number"

Parameters

block

Configuration for the number property

See also