1HTML::FormFu::Filter::FUosremratCNounmtbreirb(u3t)ed PerHlTMDLo:c:uFmoernmtFaut:i:oFnilter::FormatNumber(3)
2
3
4

NAME

6       HTML::FormFu::Filter::FormatNumber - Convert a formatted number from a
7       known locale
8

SYNOPSIS

10       This filter simply does the opposite of
11       HTML::FormFu::Deflator::FormatNumber. It removes all thousands
12       separators and decimal points and returns the raw number which can be
13       handled by perl.  See "unformat_number" in Number::Format for more
14       details.
15
16           locale: de_DE
17           elements:
18             - type: Text
19               name: number
20               filters:
21                 - type: FormatNumber
22
23           # An input value like "13.233.444,22" will be transformed to "13233444.22"
24           # Same for "13233444,22"
25

METHODS

27   locale
28       If no locale is found, the server's locale will be used.
29
30       This method is a special 'inherited accessor', which means it can be
31       set on the form, a enclosing block element, the field, or this filter.
32       When the value is read, if no value is defined it automatically
33       traverses the element's hierarchy of parents, through any block
34       elements and up to the form, searching for a defined value.
35

AUTHOR

37       Moritz Onken, "onken at houseofdesign.de"
38

SEE ALSO

40       Is a sub-class of, and inherits methods from HTML::FormFu::Filter
41
42       HTML::FormFu::Deflator::FormatNumber
43
44       HTML::FormFu
45
47       Copyright 2008 Moritz Onken, all rights reserved.
48
49       This program is free software; you can redistribute it and/or modify it
50       under the same terms as Perl itself.
51
52
53
54perl v5.12.1                      2010-05-H1T6ML::FormFu::Filter::FormatNumber(3)
Impressum