PGObje...gFloat(3pm)

πŸ“¦
version 2.001 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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:


πŸŽ€ ACKNOWLEDGEMENTS πŸŽ€

...nothing here bestie, it's giving mysterious silence πŸ’…


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 πŸ’–πŸŒΈπŸ¦‹