DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:struct:type_decimal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:struct:type_decimal [2016-04-14 11:59] – [Configuration] 130.112.1.3plugin:struct:type_decimal [2024-01-15 18:12] (current) 212.201.117.6
Line 12: Line 12:
 The following configuration is available in addition to the basic type [[type#configuration]]: The following configuration is available in addition to the basic type [[type#configuration]]:
  
-^ Config     ^ Format   ^ Description                                                                                                                                                                           ^ +^ Config       ^ Format   ^ Description                                                                                                                                                                           ^ 
-| min        integer  | The number has to be at least this value. Be sure to specify decimals with a ''.'' as decimal point!                                                                                  | +| min          float    | The number has to be at least this value. Be sure to specify decimals with a ''.'' as decimal point!                                                                                  | 
-| max        integer  | The number may be at most this value. Be sure to specify decimals with a ''.'' as decimal point!                                                                                      | +| max          float    | The number may be at most this value. Be sure to specify decimals with a ''.'' as decimal point!                                                                                      | 
-| roundto    | integer  | The number of decimals the values should be rounded to. Use ''-1'' for no rounding.                                                                                                    | +| roundto      | integer  | The number of decimals the values should be rounded to. Use ''-1'' for no rounding. (Note: If you leave this option blank, your decimal field will be broken.)                                                                                                    | 
-| 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.  | +| 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.  | 
-| thousands  | char     | The character to use as a thousands separator. The default is a thin non-breaking space.                                                                                              | +| thousands    | char     | The character to use as a thousands separator. The default is a thin non-breaking space.                                                                                              | 
-| trimzeros  | boolean  | If true, trailing zeros are stripped from the decimals.                                                                                                                               | +| trimzeros    | boolean  | If true, trailing zeros are stripped from the decimals.                                                                                                                               | 
-| prefix | string | This text will be prepended to the saved value - useful for currency symbols | +| prefix       | string   | This text will be prepended to the saved value - useful for currency symbols                                                                                                          
-| postfix | string | This text will be appended to the saved value - useful for currency symbols |+| postfix      | string   | This text will be appended to the saved value - useful for currency symbols                                                                                                           | 
 +| engineering  | boolean  | Enables engineering notation postfixes for numbers (1000 -> 1k)                                                                                                                       |
  
plugin/struct/type_decimal.1460627943.txt.gz · Last modified: 2016-04-14 11:59 by 130.112.1.3

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki