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

Application Server

StringFromReal()

  • Last UpdatedJul 22, 2024
  • 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 attribute.

Precision

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

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

StringRight()

StringSpace()

StringTest()

StringToIntg()

StringToReal()

StringTrim()

StringUpper()

Text()

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