format#

swordfish.function.format()#

Apply a specified format to the given object.

参数:
  • X (Constant) -- A scalar/vector.

  • format (Constant) -- A string indicating the format to be applied to X. Depending on the data type of input X, format calls either function decimalFormat or temporalFormat.

返回:

A STRING scalar/vector.

返回类型:

Constant