You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/06/14 23:06:24 UTC

svn commit: r1135795 - /commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml

Author: sebb
Date: Tue Jun 14 21:06:23 2011
New Revision: 1135795

URL: http://svn.apache.org/viewvc?rev=1135795&view=rev
Log:
Add basic description of octal, hex and exponent notation

Modified:
    commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml

Modified: commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml?rev=1135795&r1=1135794&r2=1135795&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml (original)
+++ commons/proper/jexl/trunk/src/site/xdoc/reference/syntax.xml Tue Jun 14 21:06:23 2011
@@ -174,6 +174,23 @@
           </td>
         </tr>
         <tr>
+          <td>Natural literals - octal and hex support</td>
+          <td>
+          Natural numbers (i.e. Integer, Long, BigInteger) can also be expressed as octal or hexadecimal using the same format as Java.
+          i.e. prefix the number with <code>0</code> for octal, and prefix with <code>0x</code> or <code>0X</code> for hexadecimal.
+          For example <code>010</code> or <code>0x10</code>.
+          </td>
+        </tr>
+        <tr>
+          <td>Real literals - exponent support</td>
+          <td>
+          Real numbers (i.e. Float, Double, BigDecimal) can also be expressed using standard Java exponent notation.
+          i.e. suffix the number with <code>e</code> or <code>E</code> followed by the sign <code>+</code> or <code>-</code>
+          followed by one or more decimal digits.
+          For example <code>42.0E-1D</code> or <code>42.0E+3B</code>.
+          </td>
+        </tr>
+        <tr>
           <td>String literals</td>
           <td>
             Can start and end with either <code>'</code> or <code>"</code> delimiters, e.g.