PGObje...gFloat(3pm)
π PGObject::Type::BigFloat π
okay bestie, listen up β this is a page from the User Contributed Perl Documentation, and it's all about PGObject::Type::BigFloat, aka the Math::BigFloat wrappers for PGObject classes. iykyk π§β¨
β¨ NAME β¨
PGObject::Type::BigFloat β literally just Math::BigFloat wrappers for PGObject classes. that's the vibe. π¦
πΈ VERSION πΈ
Version 2.001 β we're at 2.001 babes, write it down. π
π SYNOPSIS π
okay so here's the whole deal in code form, no cap:
use PGObject::Type::BigFloat;
PGObject::Type::BigFloat->register(); # Get all numeric and float types
my $self->{foo} = PGObject::Type::BigFloat->new(0);
$self->call_dbmethod(funcname => 'bar'); # will use this as a numeric
see how easy that was?? register() snatches up all the numeric and float types for you, you spin up a new(0), and then when you call_dbmethod(funcname => 'bar') it's gonna use that as a numeric. slay. π₯
π SUBROUTINES/METHODS π
π register(registry => 'default', types => ['float4', 'float8', 'numeric'])
yep, that's the signature, exactly like that, don't @ me. π
π to_db
This serializes this into a simple db-friendly form. she's packing your number up all cute and tidy so the database doesn't get confused. π
π¦ from_db
take simple normalized db floats and turn them into numeric representations. glow-up arc for your data fr fr. β¨
π
is_undef(optionally $set);
Return undef to the db or user interface. Can be set through apps. sometimes the answer is just undef and that's valid bestie π
β AUTHOR β
Chris Travers, "<chris.travers at gmail.com>" β the icon who made this happen, show some respect. π
π BUGS π
found a bug? a feature you're obsessed with wanting? Please report any bugs or feature requests to "bug-pgobject-type-bigfloat at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=PGObject-Type-BigFloat>.
and the way this works is so nice actually β I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. mutual update energy, we love a feedback loop. π«Ά
πΈ SUPPORT πΈ
You can find documentation for this module with the perldoc command. bestie run it, it's right there:
perldoc PGObject::Type::BigFloat
You can also look for information at:
- RT: CPAN's request tracker (report bugs here) β <http://rt.cpan.org/NoAuth/Bugs.html?Dist=PGObject-Type-BigFloat>
- AnnoCPAN: Annotated CPAN documentation β <http://annocpan.org/dist/PGObject-Type-BigFloat>
- CPAN Ratings β <http://cpanratings.perl.org/d/PGObject-Type-BigFloat>
- Search CPAN β <http://search.cpan.org/dist/PGObject-Type-BigFloat/>
π ACKNOWLEDGEMENTS π
...nothing here bestie, it's giving mysterious silence π
π LICENSE AND COPYRIGHT π
Copyright 2013-2014 Chris Travers.
This program is released under the following license: BSD β go wild, legally. β¨
okay that's the whole page, you ate it, periodt π
and for the cute sign-off: this gorgeous little page is running on perl v5.36.0, dated 2023-11-13, and yes the header up top really is PGObje...gFloat(3pm) because the terminal truncates like that and we just live with it. mwah ππΈπ¦
π¦ where this page comes from
- debian trixie: libpgobject-type-bigfloat-perl 2.001-3 Β· BSD-2-Clause
- ubuntu noble: libpgobject-type-bigfloat-perl 2.001-3 Β· BSD-2-Clause
- ubuntu resolute: libpgobject-type-bigfloat-perl 2.001-3 Β· BSD-2-Clause
- ubuntu stonking: libpgobject-type-bigfloat-perl 2.001-3 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms