LaTeXML...::Number(3)
β¨ NAME β¨
"LaTeXML::Common::Number" β representation of numbers; extends LaTeXML::Common::Object. π
Hey bestie! Welcome to the LaTeXML...::Number(3) page β yep, itβs from the User Contributed Perl Documentation, and itβs all about numbers in LaTeXML. This page is lowkey iconic for anyone who needs a number to act like a full-on object. π
π Exported functions π
$number = Number($num);β creates aNumberobject representing$num. Boom, number glowed up into an object. β¨
πΈ Methods πΈ
Okay, method time β these are the moves this number object has. π
@tokens = $object->unlist;β return a list of the tokens making up this$object.$string = $object->toString;β return a string representing$object.$string = $object->ptValue;β return a value representing$objectwithout the measurement unit (pt) with limited decimal places.$string = $object->pxValue;β return an integer value representing$objectin pixels. Uses the state variableDPI(dots per inch).$n = $object->valueOf;β return the value in scaled points (ignoring shrink and stretch, if any).$n = $object->smaller($other);β return$objector$other, whichever is smaller.$n = $object->larger($other);β return$objector$other, whichever is larger.$n = $object->absolute;β return an object representing the absolute value of the$object.$n = $object->sign;β return an integer:-1for negatives,0for0and1for positives.$n = $object->negate;β return an object representing the negative of the$object.$n = $object->add($other);β return an object representing the sum of$objectand$other.$n = $object->subtract($other);β return an object representing the difference between$objectand$other.$n = $object->multiply($n);β return an object representing the product of$objectand$n(a regular number).$n = $object->divide($n);β return an object representing the (truncating) division of$objectby$n(a regular number).$n = $object->divideround($n);β return an object representing the (rounding) division of$objectby$n(a regular number).
π AUTHOR π
The author is Bruce Miller β <bruce.miller@nist.gov> π
π COPYRIGHT π
Public domain software, produced as part of work done by the United States Government & not subject to copyright in the US.
Later, bestie π«Ά This page came from perl v5.42.3, dated 2024-02-26, and itβs the LaTeXML...::Number(3) page. Bye~ π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-LaTeXML 0.8.8
- nixpkgs unstable: perl5.42.3-LaTeXML 0.8.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms