Core.Terms.ToByteField

From emotive
Revision as of 10:15, 26 April 2019 by Nb (talk | contribs)
Jump to navigation Jump to search

Classification

Name ToByteField
Short Description Converts an OTX term to a value of the ByteField data type
Class Term
Extension OTX Core library
Group Conversion terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

ByteFieldTerm = Conversion.ToByteField(Term);

Description

This term will return the ByteField counterpart of the argument term.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
ByteField Returns the ByteField counterpart of the argument term.

Rules

  • Boolean
    Returns the 0x01, if true , otherwise 0x00
  • Integer
    Returns a 64-bit pair KOMPLEMENT-representation of the integer value back
  • Float
    Returns interpretation of the value according to IEEE 754:1985
  • ByteField
    Returns a copy of the value
  • String
    Returns an interpretation of the value to UTF-8

Properties

Name Data Type Class Default Cardinality Description
Term - Term - [1] Represents the OTX term that will be converted to a new value of the ByteField data type. See conversion rule descriptions above.

Examples

ByteField ByteField1;
ByteField ByteField2;
ByteField ByteField3;
ByteField ByteField4;

ByteField1 = Conversion.ToByteField(true);
ByteField2 = Conversion.ToByteField("1234");
ByteField3 = Conversion.ToByteField(123.456);
ByteField4 = Conversion.ToByteField(&18 00 FF FF);

See also

ToBoolean
ToInteger
ToFloat
ToString