From 4023903eac7c1bb76287b20133913a6d786b7c0d Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Thu, 23 Dec 2021 17:20:11 +0100 Subject: New property ``precision`` for ``decimal`` fields. --- docs/source/user/settings.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'docs') diff --git a/docs/source/user/settings.rst b/docs/source/user/settings.rst index 565ae73..2d3a3fa 100644 --- a/docs/source/user/settings.rst +++ b/docs/source/user/settings.rst @@ -86,6 +86,17 @@ Some field types may add other custom properties. the amount by which an ``auto: increment`` field is incremented (negative values are of course allowed). Default is 1. +``decimal`` properties +---------------------- + +``precision``: + if this property is set, every value in this field will get rounded + to the given number of decimals. + + With this property it is possible to store decimal values as YAML + floats instead of strings. + + ``date`` and ``datetime`` properties ------------------------------------ -- cgit v1.2.3