PPI::To...r::Float(3)

πŸ’– PPI::Token::Number::Float β€” the manual page, but make it cute πŸ’–

okay bestie, gather round, we're reading the PPI::Token::Number::Float(3) page together and honestly? it's giving niche but essential. it's a token class for a floating-point number. tiny page, big vibes, let's go 🫢


✨ NAME ✨

PPI::Token::Number::Float β€” the token class for a floating-point number. yes, that's the whole name, and yes, she's iconic for it πŸ’…


🌸 SYNOPSIS 🌸

$n = 1.234;

that's it. that's the whole flex. a little decimal, a whole lot of power πŸ“


πŸ¦‹ INHERITANCE πŸ¦‹

look at this family tree, she comes from good stock:

PPI::Token::Number::Float
isa PPI::Token::Number
    isa PPI::Token
        isa PPI::Element

four generations of token royalty, no cap πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

so the PPI::Token::Number::Float class is used for tokens that represent floating point numbers. a float is identified by a decimal point β€” that's the whole tell, that's the vibe check 🌈

and listen, important detail: exponential notation (the "e" or "E") is not handled here, bestie. that's the PPI::Token::Number::Exp class's job. different girl, different job, we respect the division of labour ✨


πŸŽ€ METHODS πŸŽ€

base

Returns the base for the number: 10. just ten. decimal queen, always ten, never stressed πŸ’…

literal

Return the numeric value of this token. it literally tells you the number. that's the method. obsessed 😭


🫢 SUPPORT 🫢

See the support section in the main module. (go check the main character, she's got the details iykyk)


🌟 AUTHOR 🌟

Chris Dolan <cdolan@cpan.org> β€” thank you for your service, king 🫑


Copyright 2006 Chris Dolan.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.


⚠️ fr fr, read the license before you go redistributing, bestie. it's free software but it's not lawless software πŸ’€

and that's the whole page!! no skips, no skims, every single flag-less little detail preserved 🌸 this was perl v5.42.0, dated 2026-01-17, and she ate every single time βœ¨πŸŽ€ bye bestie, go parse some floats πŸ’–

πŸ“¦ where this page comes from