SlideShare a Scribd company logo
3
Most read
12
Most read
15
Most read
Basic Math Operations using
Dataweave
Transform
• Sum
• %dw 1.0 %output application/xml
---
plus : 2 + 2.5
output
Minus
• %dw 1.0
• %output application/xml
• ---
• minus : 2.5 - 2
Multiply
• %dw 1.0
• %output application/xml
• ---
• multiply : 2.5 * 2
Transform and output
Division
• %dw 1.0
• %output application/xml
• ---
• division : 10 / 2
Transform and output
Max
• (':array')/(':object') ⇒ ':number'
• Returns the highest number in an array or object.
• %dw 1.0
• %output application/json
• ---
• {
• a: max [1..1000],
• b: max [1, 2, 3],
• d: max [1.5, 2.5, 3.5]
• }
Transform and output
Transform and output
Min
• %dw 1.0
• %output application/json
• ---
• {
• a: min [1..1000],
• b: min [1, 2, 3],
• d: min [1.5, 2.5, 3.5]
• }
Transform and output
Round
• (':number') ⇒ ':number'
Rounds the value of a number to the nearest integer
• %dw 1.0 %output application/json
• ---
• {
• a: round 1.2,
• b: round 4.6,
• c: round 3.5
• }
Transform and output
Sqrt
• %dw 1.0 %output application/json
• ---
• {
• a: sqrt 4,
• b: sqrt 25,
• c: sqrt 100
• }
Transform and output

More Related Content

What's hot (20)

PDF
Getting Started With Cypress
Knoldus Inc.
 
PPTX
Operating System Thread | OS Thread | PPT | CSE | Presentation
Saleh Ibne Omar
 
PPTX
SSO introduction
Aidy Tificate
 
PPTX
Sql injection
Hemendra Kumar
 
PPTX
SOAP--Simple Object Access Protocol
Masud Rahman
 
PDF
12 Steps to API Load Testing with Apache JMeter
WSO2
 
PPT
JDBC Java Database Connectivity
Ranjan Kumar
 
PPTX
Planning and configuring client connectivity exchange server
Faisal AlNuaim
 
PPT
J2ee
Prince Soni
 
PPT
JDBC – Java Database Connectivity
Information Technology
 
PDF
Phoenix Framework
Pivorak MeetUp
 
PPT
RabbitMQ.ppt
ssuserde97861
 
PPTX
Angular Unit Testing
Alessandro Giorgetti
 
PDF
Introduction to thymeleaf
NexThoughts Technologies
 
PPTX
OpenSSL
Timbal Mayank
 
PDF
Java Basic Syntax
javaicon
 
PPTX
Angular 14.pptx
MohaNedGhawar
 
PPTX
Ajax
Tech_MX
 
PDF
An Introduction to Java Compiler and Runtime
Omar Bashir
 
Getting Started With Cypress
Knoldus Inc.
 
Operating System Thread | OS Thread | PPT | CSE | Presentation
Saleh Ibne Omar
 
SSO introduction
Aidy Tificate
 
Sql injection
Hemendra Kumar
 
SOAP--Simple Object Access Protocol
Masud Rahman
 
12 Steps to API Load Testing with Apache JMeter
WSO2
 
JDBC Java Database Connectivity
Ranjan Kumar
 
Planning and configuring client connectivity exchange server
Faisal AlNuaim
 
JDBC – Java Database Connectivity
Information Technology
 
Phoenix Framework
Pivorak MeetUp
 
RabbitMQ.ppt
ssuserde97861
 
Angular Unit Testing
Alessandro Giorgetti
 
Introduction to thymeleaf
NexThoughts Technologies
 
OpenSSL
Timbal Mayank
 
Java Basic Syntax
javaicon
 
Angular 14.pptx
MohaNedGhawar
 
Ajax
Tech_MX
 
An Introduction to Java Compiler and Runtime
Omar Bashir
 

Similar to Basic math operations using dataweave (20)

PPTX
Mat lab workshop
Vinay Kumar
 
PPTX
functions
Makwana Bhavesh
 
PPTX
AngularJS Version 1.3
Nir Noy
 
PPT
901131 examples
Jeninä Juco III
 
PPTX
Python Programming Essentials - M17 - Functions
P3 InfoTech Solutions Pvt. Ltd.
 
PPTX
C++ process new
敬倫 林
 
PPT
Lecture#6 functions in c++
NUST Stuff
 
PPTX
C++ programming basics
Munazza-Mah-Jabeen
 
PPT
Cpp tutorial
Vikas Sharma
 
PDF
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
kinan keshkeh
 
PDF
Emerging Languages: A Tour of the Horizon
Alex Payne
 
PDF
Lec04-CS110 Computational Engineering
Sri Harsha Pamu
 
PPT
CppTutorial.ppt
HODZoology3
 
PPTX
Nagios Conference 2014 - Rob Seiwert - Graphing and Trend Prediction in Nagios
Nagios
 
PPTX
Operators1.pptx
HARSHSHARMA840
 
PPT
functions
teach4uin
 
PPTX
Lec 2.pptx programing errors \basic of programing
daoodkhan4177
 
PPTX
Moving Average Filter in C
Colin
 
PDF
I need help to modify my code according to the instructions- Modify th.pdf
pnaran46
 
PPT
Ch02 primitive-data-definite-loops
James Brotsos
 
Mat lab workshop
Vinay Kumar
 
functions
Makwana Bhavesh
 
AngularJS Version 1.3
Nir Noy
 
901131 examples
Jeninä Juco III
 
Python Programming Essentials - M17 - Functions
P3 InfoTech Solutions Pvt. Ltd.
 
C++ process new
敬倫 林
 
Lecture#6 functions in c++
NUST Stuff
 
C++ programming basics
Munazza-Mah-Jabeen
 
Cpp tutorial
Vikas Sharma
 
2 BytesC++ course_2014_c3_ function basics&parameters and overloading
kinan keshkeh
 
Emerging Languages: A Tour of the Horizon
Alex Payne
 
Lec04-CS110 Computational Engineering
Sri Harsha Pamu
 
CppTutorial.ppt
HODZoology3
 
Nagios Conference 2014 - Rob Seiwert - Graphing and Trend Prediction in Nagios
Nagios
 
Operators1.pptx
HARSHSHARMA840
 
functions
teach4uin
 
Lec 2.pptx programing errors \basic of programing
daoodkhan4177
 
Moving Average Filter in C
Colin
 
I need help to modify my code according to the instructions- Modify th.pdf
pnaran46
 
Ch02 primitive-data-definite-loops
James Brotsos
 
Ad

More from Ramakrishna kapa (20)

PPTX
Load balancer in mule
Ramakrishna kapa
 
PPTX
Anypoint connectors
Ramakrishna kapa
 
PPTX
Batch processing
Ramakrishna kapa
 
PPTX
Msmq connectivity
Ramakrishna kapa
 
PPTX
Scopes in mule
Ramakrishna kapa
 
PPTX
Data weave more operations
Ramakrishna kapa
 
PPTX
Dataweave types operators
Ramakrishna kapa
 
PPTX
Operators in mule dataweave
Ramakrishna kapa
 
PPTX
Data weave in mule
Ramakrishna kapa
 
PPTX
Servicenow connector
Ramakrishna kapa
 
PPTX
Introduction to testing mule
Ramakrishna kapa
 
PPTX
Choice flow control
Ramakrishna kapa
 
PPTX
Message enricher example
Ramakrishna kapa
 
PPTX
Mule exception strategies
Ramakrishna kapa
 
PPTX
Anypoint connector basics
Ramakrishna kapa
 
PPTX
Mule global elements
Ramakrishna kapa
 
PPTX
Mule message structure and varibles scopes
Ramakrishna kapa
 
PPTX
How to create an api in mule
Ramakrishna kapa
 
PPTX
Log4j is a reliable, fast and flexible
Ramakrishna kapa
 
PPTX
Jsf 2
Ramakrishna kapa
 
Load balancer in mule
Ramakrishna kapa
 
Anypoint connectors
Ramakrishna kapa
 
Batch processing
Ramakrishna kapa
 
Msmq connectivity
Ramakrishna kapa
 
Scopes in mule
Ramakrishna kapa
 
Data weave more operations
Ramakrishna kapa
 
Dataweave types operators
Ramakrishna kapa
 
Operators in mule dataweave
Ramakrishna kapa
 
Data weave in mule
Ramakrishna kapa
 
Servicenow connector
Ramakrishna kapa
 
Introduction to testing mule
Ramakrishna kapa
 
Choice flow control
Ramakrishna kapa
 
Message enricher example
Ramakrishna kapa
 
Mule exception strategies
Ramakrishna kapa
 
Anypoint connector basics
Ramakrishna kapa
 
Mule global elements
Ramakrishna kapa
 
Mule message structure and varibles scopes
Ramakrishna kapa
 
How to create an api in mule
Ramakrishna kapa
 
Log4j is a reliable, fast and flexible
Ramakrishna kapa
 
Ad

Recently uploaded (20)

PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
July Patch Tuesday
Ivanti
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Python basic programing language for automation
DanialHabibi2
 
July Patch Tuesday
Ivanti
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Timothy Rottach - Ramp up on AI Use Cases, from Vector Search to AI Agents wi...
AWS Chicago
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 

Basic math operations using dataweave