Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
math:round(4066.123,2)   // 4066.12
math:round(4066.123,0)   // 4066
math:round(4066.123,-2)  // 4100

Base64 Functions

math:base64encode(str, [encoding])

Given a utf8 string, str and an optional encoding, return the base64 string string. If the encoding is omitted, it defaults to utf8. 

Code Block
languagejs
themeConfluence
math:base64encode(payload,"hex")

math:base64decode(str,[encoding])

Decode the given base64 string, str, return the utf8 stringwith an encoding of [ encoding ] returning a value. If the encoding is omitted, it defaults to utf8. 

Code Block
languagejs
themeConfluence
math:base64decode(payload,"hex")

Hashing and Digest Functions

...