Helm 3 complete tutorial (fourteen): Helm function explanation (8) mathematical calculation function

Summarizes the common knowledge points and concepts of Helm 3. Part of the content in the document comes from major blogs and official documents, and some content has been reorganized based on my own understanding and practice. All concept explanations will be equipped with practical codes. The article is updated from time to time, welcome to follow and subscribe (a paid column is opened, otherwise it will be crawled away by other private websites. Please be considerate of the big brothers and sisters, it is just a lunch, and please support it).
Link to the original text of this column: https://blog.csdn.net/xzk9381/category_10895812.html, please indicate the source for reprinting

Mathematical calculation function

Helm provides the following mathematical calculation functions:

  • add
  • add1
  • ceil
  • div
  • floor
  • len
  • max
  • min
  • mod
  • mul
  • round
  • sub

Unless otherwise specified, all functions calculate int64 type numbers.

1. add, sub, mul, div functions

add, sub, mul, div are used to calculate addition, subtraction, multiplication, and division respectively, and can accept two or more parameters:

add 1 

Guess you like

Origin blog.csdn.net/xzk9381/article/details/115375612