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

Microservices! They are everywhere, or at least, the term is. When should you use a microservice architecture? What factors should be considered when making that decision? Do the benefits outweigh the costs? Why is everyone so excited about them, anyway?  Brought to you in partnership with IBM.

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

Discover how the Watson team is further developing SDKs in Java, Node.js, Python, iOS, and Android to access these services and make programming easy. Brought to you in partnership with IBM.

Topics:
math

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}