DiagramElements-FreezeValue/en: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Cg (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „-- to be documented --“) |
Cg (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
== Introduction == |
|||
-- to be documented -- |
|||
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 === |
|||
Integer constants can be entered in one of the following formats: |
|||
* decimal (for example: "<code>1234</code>" , "<code>-1234</code>) |
|||
* with Smalltalk radix prefix: (for example: "<code>16rCAFE</code>" , "<code>16r-AA</code>, "<code>8r100</code>, "<code>2r101010000</code>) any radix between 2 and 36 is allowed. |
|||
* with C radix prefix: (for example: "<code>0xCAFE</code>" , "<code>-0xAA</code>, "<code>0b101010000</code>) (0x for hex, 0o for octal, ob for binary). Notice that the C-octal notation (prefix 0) is not supported. |
|||
=== Float === |
|||
* 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>" |
Version vom 20. September 2019, 00:02 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
"