Clownfish::Float(3pm)
π Clownfish::Float β bestie edition π
okay so this is the manual page for Clownfish::Float from the User Contributed Perl Documentation, section 3pm. it's giving "tiny class, huge personality". let's go π¦
β¨ NAME β¨
Clownfish::Float β an immutable double precision floating point number. that's it, that's the whole vibe. she does not change. she is who she is. π
πΈ SYNOPSIS πΈ
my $float = Clownfish::Float->new(2.5);
my $value = $float->get_value;
look at her. iconic. no notes. β¨
π DESCRIPTION π
not me realizing the original description section is literally just the heading with nothing under it π
bestie... yeah. there's no prose here. the DESCRIPTION heading is out here with main character energy and zero supporting text. we respect it. moving on. π
π«Ά CONSTRUCTORS π«Ά
new β
my $float = Clownfish::Float->new($value);
makes you a brand new Float. fresh out the box. π
- value β the initial value. like, what number is she. that's the one thing you gotta tell her.
π METHODS π
get_value π
my $result = $float->get_value();
returns the value of the Float. that's it. she's not hiding anything from you. π«Ά
to_i64 π₯
my $int = $float->to_i64();
converts the Float into an integer, and it truncates toward zero. so like, 2.9 becomes 2, and -2.9 becomes -2. no rounding, no mercy, just vibes.
β οΈ careful bestie β if the value is out of the range of an int64_t, this throws an exception. it will literally not. so know your range before you go there. π
compare_to π
my $int = $float->compare_to($other);
tells you whether one number is less than, equal to, or greater than another. a classic. the original. β¨
β οΈ throws an exception if other is neither a Float nor an Integer. so don't be sending her random stuff. she has standards. π
Returns: 0 if the numbers are equal, a negative number if self is less than other, and a positive number if self is greater than other. negative = she's smaller, positive = she's bigger, zero = twin flames. π―
clone π¦
my $result = $float->clone();
returns a clone of the object. a little copy of her, living her own life. so cute. π
π§ INHERITANCE π§
Clownfish::Float isa Clownfish::Obj. family tree behavior, we love to see it. πΈ
and that's the whole page, bestie β you now know Clownfish::Float better than she knows herself. go forth and float. π
this page was brought to you by perl v5.42.3, dated 2026-09-02, from the Clownfish::Float(3pm) manpage. mwah. π
π¦ where this page comes from
- fedora 43: perl-Clownfish 0.8.0-1.fc43 Β· Apache-2.0
- fedora 44: perl-Clownfish 0.8.0-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms