XML::LibXML::Number - Simple numeric values.
| Use Case | Command | Description |
|---|---|---|
| Create a number object | XML::LibXML::Number->new($num) | Creates a new XML::LibXML::Number with a numeric value |
| Retrieve the stored value | $number->value() | Returns the numeric value (also overloaded stringification) |
This class holds simple numeric values. It doesn't support -0, +/- Infinity, or NaN, as the XPath spec says it should, but I'm not hurting anyone I don't think.
new($num) — Creates a new XML::LibXML::Number object, with the value in $num. Does some rudimentary numeric checking on $num to ensure it actually is a number.value() — Also as overloaded stringification. Returns the numeric value held.Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:47 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format