Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
Learn about DokuWiki
Advanced Use
Corporate Use
Our Community
Follow us on Facebook, Twitter and other social networks.
This is an old revision of the document!
⇐ Struct Plugin ⇐ Types
The Decimal
type holds decimal numbers also known as float or double. Upper and lower bounds can be set through the config. The decimal point can be configured. Internally a dot is always used and saved. Thousand separators are not supported.
The following configuration is available in addition to the basic type configuration:
Config | Format | Description |
---|---|---|
format | string | A sprintf format string to output the number (should contain some variation on %d ) |
min | integer | The number has to be at least this value |
max | integer | The number may be at most this value |
decpoint | char | The character to use as a decimal point in output. You probably want to use either . or , . Regardless of this setting, users may always enter values with either of the two. |