Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

MathOps: Simple Math Operations In Xslt

DZone's Guide to

MathOps: Simple Math Operations In Xslt

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

cfMathOps.xml:




  

  4
  3.2
  11



cfMathOps.xsl



  




math operations from xslt

A. 4 + 3.2 = B. 3.2 - 4 = C. 4 * 3.2 = D. 11/3.2 = E. 4 + 3.2 * 11 = F. (4 + 3.2) * 11 = G. 11 mod 4 = H. 4 + 3.2 + 11 = I. floor(3.2) = J. ceiling(3.2) = K. round(3.2) = L. 11 + count(*) = M. 11 + "hello" = N. 3.2 + string-length("3.2") =

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.

Topics:
math

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}