DiagramElements-FreezeValue/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 2.x)
Zur Navigation springen Zur Suche springen
Zeile 14: Zeile 14:


* regular floats such as: "<code>123.0</code>", "<code>+123.0</code>", "<code>-123.0</code>", "<code>.123</code>", "<code>123.</code>", "<code>123.0e+2</code>", "<code>123.0e-2</code>"
* regular floats such as: "<code>123.0</code>", "<code>+123.0</code>", "<code>-123.0</code>", "<code>.123</code>", "<code>123.</code>", "<code>123.0e+2</code>", "<code>123.0e-2</code>"

=== String ===

If the pin's datatype is <CODE>String</code>, then no leading/trailing quotes are needed
(actually: if there are quotes, these will be part of the string). However, quotes are needed if the type is not unambiguously a String type (i.e. Any or a Union type).

=== Bytes (ByteArray) ===

Byte data can be entered in multiple forms:
* Smalltalk format: "<code>#[ 1 2 3 ]</code>" (spaces between byte values)
* JSON format: "<code>[ 1, 2, 3 ]</code>" (commas between byte values)
* C format: "<code>{ 1, 2, 3 }</code>" (braces and commas between byte values)
* hex format: "<code>xxXXxxXX</code>" (two hex characters per byte; no spaces in-between)
* hex format: "<code>xx XX xx XX</code>" (two hex characters per byte; with spaces in-between)

Version vom 20. September 2019, 00:09 Uhr

Introduction[Bearbeiten]

The following describes the data format and syntax used in pin freeze values. In general, the text entered as freeze value is parsed by the input pin's datatype.

Integer[Bearbeiten]

Integer constants can be entered in one of the following formats:

  • decimal (for example: "1234" , "-1234)
  • with Smalltalk radix prefix: (for example: "16rCAFE" , "16r-AA, "8r100, "2r101010000) any radix between 2 and 36 is allowed.
  • with C radix prefix: (for example: "0xCAFE" , "-0xAA, "0b101010000) (0x for hex, 0o for octal, ob for binary). Notice that the C-octal notation (prefix 0) is not supported.

Float[Bearbeiten]

  • regular floats such as: "123.0", "+123.0", "-123.0", ".123", "123.", "123.0e+2", "123.0e-2"

String[Bearbeiten]

If the pin's datatype is String, then no leading/trailing quotes are needed (actually: if there are quotes, these will be part of the string). However, quotes are needed if the type is not unambiguously a String type (i.e. Any or a Union type).

Bytes (ByteArray)[Bearbeiten]

Byte data can be entered in multiple forms:

  • Smalltalk format: "#[ 1 2 3 ]" (spaces between byte values)
  • JSON format: "[ 1, 2, 3 ]" (commas between byte values)
  • C format: "{ 1, 2, 3 }" (braces and commas between byte values)
  • hex format: "xxXXxxXX" (two hex characters per byte; no spaces in-between)
  • hex format: "xx XX xx XX" (two hex characters per byte; with spaces in-between)



Copyright © 2014-2024 eXept Software AG