跳转至主要内容
CloudStudio

函数

函数 allow obtaining values through the transformation of others. The following is a list of functions divided into categories, according to their typical use.

数学函数

函数说明
CelsiusToFahrenheitConverts a temperature in degrees Celsius to degrees Fahrenheit.
FahrenheitToCelsiusConverts a temperature in degrees Fahrenheit to degrees Celsius.
MaxReturns the maximum value among a series of values.
MinReturns the minimum value among a series of values.
PowerReturns the result of raising a given number to a given power.
RoundRounds a number to the specified number of decimal places.
SqrtCalculates the square root of a number.
TruncTruncates a number, removing the fractional part.

String handling functions

函数说明
LowerCaseConverts all characters in a string to lowercase.
StringCleanCleans a string by removing all unwanted characters.
StringPartReturns a part of a string that contains sub-strings.
UpperCaseConverts all characters in a string to uppercase.

插值函数

函数说明
LinearInterpolationPerforms a linear interpolation between a series of given points.

JSON handling functions

函数说明
JsonFieldGets the value of a field within a text ex按下ed in JSON format.

Other functions

函数说明
ErrorGenerates an error condition containing the specified message.
HexToNumberConverts a number in hexadecimal format (string) to a number.
IfReturns a value, between two given values, based on a condition.
ToBooleanConverts a value of any type to boolean.
ToNumberConverts a value of any type to numeric.
ToStringConverts a value of any type to string.

最后更新于

本页内容