RTOS – Real Number to String Conversion

Block SymbolLicensing group: STANDARD
PIC

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.

Input

u

Analog input of the block

double

Parameters

prec

Precision (number of digits)   0  20

long

mode

Output string format  1

long

1 ....

best fit

2 ....

normal

3 ....

exponencial

Output

sy

String output value

string