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 (F64)

Output

sy

String output value

String

Parameters

prec

Precision (number of digits)   0  20

Long (I32)

mode

Output string format  1

Long (I32)

1 ....

Best fit – fixed point, but for extremly 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 pointe

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