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

Try Okta to add social login, MFA, and OpenID Connect support to your Java app in minutes. Create a free developer account today and never build auth again.

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") =

Build and launch faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:
math

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}