TextFormat QML Type
Enums of supported text format. More...
Import Statement: | import CSDataQuick.Components 1.0 |
Properties
- TextFormat : enumeration
Detailed Description
This class holds the enums of the supported text format.
See also Utils::convert.
Property Documentation
TextFormat.Decimal | The text is a number with or without a decimal point, but not in exponential notation. E.g.10000.00 or 10000. Very large numbers, which do not fit in the allocated space for text, are converted to exponential regardless. It is what is returned by the EPICS routine cvtDoubleToString(). |
TextFormat.Exponential | The text is in exponential notation. E.g. 1.00e+04. |
TextFormat.EngNotation | The text is in engineering notation. E.g. 10.00e+03. |
TextFormat.Compact | The text is supposedly in the most compact form of decimal or exponential. (Similar to the %g format in C.) The form may not be the most compact, however. It is what is returned by the EPICS routine cvtDoubleToCompactString(). |
TextFormat.Truncated | The text is truncated to the largest integer. E.g. 10000. |
TextFormat.Hexadecimal | The text is truncated to the nearest integer and shown in hexadecimal. E.g. 0x3e8. Input is interpreted as hexadecimal. |
TextFormat.Octal | The text is truncated to the nearest integer and shown in octal. E.g. 01750. Input is interpreted as octal. |
TextFormat.String | This is the same as decimal except that for large numbers or precision, it can be in exponential format. It is what is returned by the EPICS routine cvtDoubleToString(). |
TextFormat.Sexagesiaml | The text is in degrees or hours, minutes, and seconds with colons between the three fields. E.g. 12:45:10.2. The degrees or hours field is the integer part of the number, and the fractional part is expressed as an integer number of minutes and seconds plus fractions of a second. The example, 12:45:10.2, is the number 12.752833 expressed as 12 degrees or hours, 45 minutes, and 10.2 seconds. The precision determines the number of digits after the first colon. For precisions of 0, 1, 2, 3, 4, 5, and 6 the number above would be expressed as 13, 12:5, 12:45, 12:45:1, 12:45:10, 12:45:10.2, and 12:45:10.20, respectively. On input colons may be replaced by spaces or omitted, and a decimal point may be used. The inputs 10.75, 10:45, 10.45.0, and 10 45 00 are all treated as a quarter to eleven. The inputs â1, :â1, and ::â1 are interpreted as â1:00:00, â:01:00, and â0:00:01, respectively. |
TextFormat.SexagesimalDMS | This is the same as sexagesimal except that the number is assumed to be in radians and is expressed as degrees, minutes, and seconds with 2p radians representing 360 degrees. On input the number is multiplied by 180/p and then converted to sexagesimal as above. On output the number is converted as sexagesimal above and then multiplied by p/180 to get radians. |
TextFormat.SexagesimalHMS | This is the same as sexagesimal except that the number is assumed to be in radians and is expressed as hours, minutes, and seconds with 2p radians representing 24 hours. On input the number is multiplied by 12/p and then converted to sexagesimal as above. On output the number is converted as sexagesimal above and then multiplied by p/12 to get radians. |