I am looking for a way to convert a floating-point value to scientific notaiton string in Beckhoff TwinCAT or codesys. The documentation for their FB_FormatString says this is not currently supported. Does anyone have a "goto" approach for this?
In TwinCAT I use LREAL_TO_FMTSTR
sOut := LREAL_TO_FMTSTR( 0.46523, 2, TRUE );