This file is indexed.

/usr/share/doc/libognl-java/LanguageGuide/coerceNumber.html is in libognl-java-doc 2.7.3-5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
<html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Interpreting Objects as Numbers</title><link href="../docbook.css" type="text/css" rel="stylesheet"><meta content="DocBook XSL Stylesheets V1.78.1" name="generator"><link rel="home" href="index.html" title="OGNL Language Guide"><link rel="up" href="coercion.html" title="Chapter&nbsp;5.&nbsp;Coercing Objects to Types"><link rel="prev" href="coercion.html" title="Chapter&nbsp;5.&nbsp;Coercing Objects to Types"><link rel="next" href="coerceInteger.html" title="Interpreting Objects as Integers"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Interpreting Objects as Numbers</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="coercion.html"><img src="../images/navigation/prev.gif" alt="Prev"></a>&nbsp;</td><th align="center" width="60%">Chapter&nbsp;5.&nbsp;Coercing Objects to Types</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="coerceInteger.html"><img src="../images/navigation/next.gif" alt="Next"></a></td></tr></table><hr></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="coerceNumber"></a>Interpreting Objects as Numbers</h2></div></div></div><p>Numerical operators try to treat their arguments as numbers. The basic primitive-type wrapper classes (Integer, Double, and so on, including Character and Boolean, which are treated as integers), and the "big" numeric
            classes from the java.math package (BigInteger and BigDecimal), are recognized as special numeric types. Given an object of some other class, <acronym class="acronym">OGNL</acronym> tries to parse the object's string value as a number.</p><p>Numerical operators that take two arguments use the following algorithm to decide what type the result should be. The type of the actual result may be wider, if the result does not fit in the given type.</p><div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem"><p>If both arguments are of the same type, the result will be of the same type if possible.</p></li><li class="listitem"><p>If either argument is not of a recognized numeric class, it will be treated as if it was a <code class="classname">Double</code> for the rest of this algorithm.</p></li><li class="listitem"><p>If both arguments are approximations to real numbers <code class="classname">(Float</code>, <code class="classname">Double</code>, or <code class="classname">BigDecimal</code>), the result will be the wider type.</p></li><li class="listitem"><p>If both arguments are integers <code class="classname">(Boolean</code>, <code class="classname">Byte</code>, <code class="classname">Character</code>, <code class="classname">Short</code>, <code class="classname">Integer</code>, <code class="classname">Long</code>, or
                    <code class="classname">BigInteger</code>), the result will be the wider type.</p></li><li class="listitem"><p>If one argument is a real type and the other an integer type, the result will be the real type if the integer is narrower than "int"; <code class="classname">BigDecimal</code> if the integer is <code class="classname">BigInteger</code>;
                    or the wider of the real type and <code class="classname">Double</code> otherwise.</p></li></ul></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="coercion.html"><img src="../images/navigation/prev.gif" alt="Prev"></a>&nbsp;</td><td align="center" width="20%"><a accesskey="u" href="coercion.html"><img src="../images/navigation/up.gif" alt="Up"></a></td><td align="right" width="40%">&nbsp;<a accesskey="n" href="coerceInteger.html"><img src="../images/navigation/next.gif" alt="Next"></a></td></tr><tr><td valign="top" align="left" width="40%">Chapter&nbsp;5.&nbsp;Coercing Objects to Types&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html"><img src="../images/navigation/home.gif" alt="Home"></a></td><td valign="top" align="right" width="40%">&nbsp;Interpreting Objects as Integers</td></tr></table></div></body></html>