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 π
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
- fedora 44: perl-PPI 1.284-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms