TextFormat QML Type

Enums of supported text format. More...

Import Statement: import CSDataQuick.Components 1.0

Properties

Detailed Description

This class holds the enums of the supported text format.

See also Utils::convert.

Property Documentation

TextFormat : enumeration

TextFormat.DecimalThe 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.ExponentialThe text is in exponential notation. E.g. 1.00e+04.
TextFormat.EngNotationThe text is in engineering notation. E.g. 10.00e+03.
TextFormat.CompactThe 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.TruncatedThe text is truncated to the largest integer. E.g. 10000.
TextFormat.HexadecimalThe text is truncated to the nearest integer and shown in hexadecimal. E.g. 0x3e8. Input is interpreted as hexadecimal.
TextFormat.OctalThe text is truncated to the nearest integer and shown in octal. E.g. 01750. Input is interpreted as octal.
TextFormat.StringThis 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.SexagesiamlThe 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.SexagesimalDMSThis 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.SexagesimalHMSThis 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.