HTML::...::Float(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

πŸ’– NAME πŸ’–

okay so bestie, welcome to HTML::...::Float(3pm) β€” a page from the User Contributed Perl Documentation, and it's literally here to validate a float value ✨


πŸ¦‹ VERSION πŸ¦‹

This page is riding with version 0.40068 πŸ’…


🌸 DESCRIPTION 🌸

So here's the vibe: this accepts a positive or negative float/integer. Negative numbers may be prefixed with a dash. By default, a max of eight digits including 2 precision are accepted. The default decimal symbol is ','. The widget type is 'text'. No cap, that's the whole energy πŸŽ€

The example is giving exactly this:

# For example 1234,12 has size of 6 and precision of 2
# and separator symbol of ','

has_field 'test_result' => (
    type                    => 'Float',
    size                    => 8,               # Total size of number including decimal part.
    precision               => 2,               # Size of the part after decimal symbol.
    decimal_symbol          => '.',             # Decimal symbol accepted in web page form
    decimal_symbol_for_db   => '.',             # For inflation. Decimal symbol accepted in DB, which automatically converted to.
    range_start             => 0,
    range_end               => 100
);

πŸŽ€ messages πŸŽ€

  • float_needed
  • float_size
  • float_precision

πŸ‘‘ AUTHOR πŸ‘‘

FormHandler Contributors - see HTML::FormHandler 🫢


This software is copyright (c) 2017 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay πŸ’œ


okay bestie, that's the whole page πŸ’… β€” it's perl v5.34.0, dated 2022-03-25, and the manual is HTML::...::Float(3pm). periodt 🫢

πŸ“¦ where this page comes from