HTML::...Number(3pm)
π NAME π
HTML::FormFu::Filter::FormatNumber β bestie, this lil filter turns a formatted number from a locale you already know back into something raw π’β¨
πΈ VERSION πΈ
It's giving version 2.07 π
π¦ SYNOPSIS π¦
Okay so literally, this filter does the exact opposite of HTML::FormFu::Deflator::FormatNumber. It strips out all the thousands separators and the decimal points and hands you back the raw number, like, a number perl can actually deal with. If you want more deets, go look at "unformat_number" in Number::Format π«Ά
locale: de_DE
elements:
- type: Text
name: number
filters:
- type: FormatNumber
# An input value like "13.233.444,22" will be transformed to "13233444.22"
# Same for "13233444,22"
Like, 13.233.444,22 goes in and 13233444.22 comes out. Same energy for 13233444,22 π no cap.
β¨ METHODS β¨
π locale
If there's no locale found anywhere, then it just uses the server's locale. Feral but okay π
This method is a special 'inherited accessor', which basically means you can set it on the form, on an enclosing block element, on the field, or on this filter itself. When someone reads the value and nothing's been defined, it just automatically climbs the element's hierarchy of parents β through any block elements, all the way up to the form β hunting for a defined value. Main character behavior honestly π
π AUTHOR π
Moritz Onken, onken at houseofdesign.de π
π SEE ALSO π
- It's a sub-class of, and inherits methods from
HTML::FormFu::Filter HTML::FormFu::Deflator::FormatNumberHTML::FormFu
π COPYRIGHT & LICENSE π
Copyright 2008 Moritz Onken, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π AUTHOR π
Carl Franks <cpan@fireartist.com>
π§ COPYRIGHT AND LICENSE π§
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
And that's the whole page bestie π«Ά this was perl v5.28.1, dated 2019-01-12, and yes the man page was literally named HTML::...Number(3pm) because someone was feeling mysterious. Slay, go format some numbers π β¨
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms