Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

StringFromReal()

  • Last UpdatedJul 13, 2023
  • 1 minute read

Converts a real value into its string representation, either as a floating-point number or in exponential notation, and returns the result.

Category

String

Syntax

StringResult = StringFromReal( Number, Precision, Type );

Parameters

Number

Converted to the Precision and Type specified. Any number or a float equipment.item.

Precision

Specifies how many decimal places is shown. Any number or an integer equipment.item.

Type

A string value that determines the display method. Possible values are:

f = Display in floating-point notation.

e = Display in exponential notation with a lowercase "e."

E = Display in exponential notation with an uppercase "E" followed by a plus sign and at least three exponential digits.

Examples

StringFromReal(263.355, 2,"f"); ' returns "263.36";

StringFromReal(263.355, 2,"e"); ' returns "2.63e2";

StringFromReal(263.355, 2,"E"); ' returns "2.63 E+002";

See Also

StringASCII(), StringChar(), StringFromIntg(), StringFromTime(), StringInString(), StringLeft(), StringLen(), StringLower(), StringMid(), StringReplace(), StringSpace(), StringTest(), StringToIntg(), StringToReal(), StringTrim(), StringUpper(), Text()

String Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in