XML::LibXML::Number(3) User Contributed Perl Documentation XML::LibXML::Number(3)

# [NAME](#NAME)

XML::LibXML::Number - Simple numeric values.

# [DESCRIPTION](#DESCRIPTION)

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.

# [API](#API)

## [new($num)](#new%28$num%29)

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.

2026-10-30 perl v5.44.0

---

Document: XML::LibXML::Number(3pm) from perl-xml-libxml 2.0212-r4 (Chainguard OS)
Source: https://github.com/shlomif/perl-XML-LibXML
