MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

iNumber

MMO\math\interfaces · 1 symbol · generated 27 Oct 2026

interface

iNumber

iNumber.php:7

Describe any objects that can be converted to a number (int|float)

interface MMO\math\interfaces\iNumber extends MMO\math\interfaces\iWithUnits
Namespace
MMO\math\interfaces
Implements
iWithUnits

Methods1

numberValue()

abstractiNumber.php:12

Convert to a value

abstract function numberValue(): int|float|null
returnsint | float | nullif null, the conversion cannot be done
Inherited members (2)
MethodsDeclared byDescription
hasUnits()iWithUnits
units()iWithUnitsReturn a list of units with their associated factor and power.