In this module, you'll learn how to perform calculations and data transformations using integers and floats. The content covers basic numerical operations—such as addition, subtraction, multiplication, and division—as well as filters for rounding and obtaining absolute values. You'll also explore converting between strings and numbers to ensure smooth integration of numerical data in your automation workflows.
Video (0:58 minutes)
Why it matters
Numbers are essential for calculations, comparisons, and data processing in automation.
Understanding how to manipulate numerical values improves workflow efficiency.
Basic numerical operations
Mathematical functions – Perform addition, subtraction, multiplication, and division.
Filters for modification – Use filters to round numbers or retrieve absolute values.
Converting between data types
String to number conversion – Convert strings into integers or floats to enable numerical operations.
Number to string conversion – Transform numbers into strings when needed for text-based operations.
The impact
Enables accurate calculations and data processing in workflows.
Prevents errors by ensuring correct data type conversions.
Improves automation flexibility by allowing smooth transitions between numbers and text.
By mastering these numerical operations in Jinja, you'll harness the full power of data manipulation, setting the stage for more precise and resilient automation logic.