---
name: "XML::XPath::Number"
section: "3pm"
platform: "linux"
package: "perl-xml-xpath"
version: "1.49-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XML::XPath::Number"
---

# XML::XPath::Number(3pm)

Simple numeric values.

## NAME

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

## 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

### new($num)

Creates a new XML::XPath::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.
