| |||||||
FRAMES NO FRAMES |
<%@ taglib prefix="math" uri="http://jsftools.logikdev.com/math" %>
<anyxmlelement xmlns:math="http://jsftools.logikdev.com/math" />
JSF Tools 0.3 Math functions library
Tag Library Information | |
Display Name | Math functions |
Version | 0.3 |
Short Name | math |
URI | http://jsftools.logikdev.com/math |
Function Summary | ||
java.lang.Number | abs( java.lang.Object) | Returns the absolute value of the number. |
java.lang.Number | add( java.lang.Object[]) | Returns the sum of the numbers. Other functions available: java.lang.Number add(java.lang.Object, java.lang.Object) Examples: ${math:add(numbers) |
java.lang.Integer | ceil( java.lang.Object) | Returns the smallest integer that is not less than the given number. |
java.lang.Number | div( java.lang.Object[]) | Returns the quotient of the numbers. Other functions available: java.lang.Number div(java.lang.Object, java.lang.Object) Examples: ${math:div(numbers) |
java.lang.Integer | floor( java.lang.Object) | Returns the integer portion of the number. |
java.lang.Number | getAverage( java.util.Collection) | Returns the average of the values. Other functions available: java.lang.Number getAverage(java.util.Collection, java.lang.String) java.lang.Number getAverage(java.lang.Double[]) java.lang.Number getAverage(java.lang.Long[]) java.lang.Number getAverage(java.lang.Object[]) java.lang.Number getAverage(java.lang.Object[], java.lang.String) Examples: ${math:getAverage(collection)} |
java.lang.Double | getRandom( ) | Returns a pseudo-random Double greater than or equal to 0.0 and less than 1.0. |
java.lang.Number | getTotal( java.util.Collection) | Returns the sum of the values. Other functions available: java.lang.Number getTotal(java.util.Collection, java.lang.String) java.lang.Number getTotal(java.lang.Double[]) java.lang.Number getTotal(java.lang.Long[]) java.lang.Number getTotal(java.lang.Object[]) java.lang.Number getTotal(java.lang.Object[], java.lang.String) Examples: ${math:getTotal(collection)} |
java.lang.Number | idiv( java.lang.Object, java.lang.Object) | Returns the result of performing integer division on the operands. |
java.lang.Number | max( java.lang.Object[]) | Returns the largest of the numbers. Other functions available: java.lang.Number max(java.lang.Object, java.lang.Object) Examples: ${math:max(numbers) |
java.lang.Number | min( java.lang.Object[]) | Returns the smallest of the numbers. Other functions available: java.lang.Number min(java.lang.Object, java.lang.Object) Examples: ${math:min(numbers) |
java.lang.Integer | mod( java.lang.Object, java.lang.Object) | Returns the result of performing integer modulus on the operands. |
java.lang.Number | mul( java.lang.Object[]) | Returns the product of the numbers. Other functions available: java.lang.Number mul(java.lang.Object, java.lang.Object) Examples: ${math:mul(numbers) |
java.lang.Number | pow( java.lang.Object, java.lang.Object) | Returns the first number raised to the power of the second. |
java.lang.Number | random( java.lang.Object, java.lang.Object) | Returns a pseudo-random Number greater than or equal to the first number and less than the second. |
java.lang.Integer | round( java.lang.Object) | Returns the number rounded to the nearest whole Integer. |
java.lang.Double | roundTo( java.lang.Object, java.lang.Object) | Returns the value rounded to the specified number of decimal places. |
java.lang.Number | sub( java.lang.Object[]) | Returns the difference of the numbers (subtracted in order). Other functions available: java.lang.Number sub(java.lang.Object, java.lang.Object) Examples: ${math:sub(numbers) |
java.lang.Double | toDouble( java.lang.Object) | Returns a Double representation of the number. |
java.lang.Integer | toInteger( java.lang.Object) | Returns a Integer representation of the number. |
java.lang.Number | toNumber( java.lang.Object) | Returns a Number representation of the number. |
| |||||||
FRAMES NO FRAMES |