RTOS – Real number to string conversion

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio u sy RTOS

Function Description
The RTOS converts a real number in u into a string value in su. Precision and format are specified by the prec and mode parameters. Possible values of the mode parameter are:

  • 1: Best fit – fixed point, but for extremely small or big numbers exponential format; parameter prec is total maximum number of characters in output (mantisa for exponential format)
  • 2: Normal – fixed point format; parameter prec is number of places after the decimal point
  • 3: Exponential – scientific format; parameter prec is number of places after the decimal point

This block propagates the signal quality. More information can be found in the 1.4 section.

Input

u

Analog input of the block

Double (F64)

Parameter

prec

Precision (number of digits)   0  20

Long (I32)

mode

Output string format  1

Long (I32)

1 ....

Best fit

2 ....

Normal

3 ....

Exponential

Output

sy

String output value

String

2024 © REX Controls s.r.o., www.rexygen.com