format#

swordfish.function.format()#

Apply a specified format to the given object.

Parameters:
  • 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.

Returns:

A STRING scalar/vector.

Return type:

Constant