RTOS – Real number to string conversion
Block SymbolLicensing group: STANDARD
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) |
|
|
|
Output
sy | String output value | String |
[Previous] [Back to top] [Up] [Next]
2024 © REX Controls s.r.o., www.rexygen.com