Clownfish::Float(3pm)

πŸ“¦
version 0.8.0 Β· 3 versions
, in fedora 43, fedora 44

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