oph_to_bin

Description

Behaviour

It converts a string in a form ‘n1, n2, n3, ...’ into a binary array of measures.

Parameters

  • input measure type: not used.
  • output measure type: Ophidia typing. Supported types are: ‘oph_double’; ‘oph_float’; ‘oph_long’; ‘oph_int’; ‘oph_short’; ‘oph_byte’.
  • convertible string: string as a comma-separated list of numbers.

Return type

Binary-array.

Examples

Convert the string ‘112.45, 563.9, 0.004’.

oph_to_bin('','OPH_DOUBLE','112.45, 563.9, 0.004')

Operation type

Simple.

Arguments

Argument name Type Mandatory Values Default Min/Max-value Min/Max-times
input measure type “oph_type” “yes”       “1” / “1”
output measure type “oph_type” “yes” “‘oph_double’|’oph_float’|’oph_int’|’oph_long’|’oph_short’|’oph_byte’”     “1” / “1”
convertible string “string” “yes”       “1” / “1”