DesignForms
SystemFunctions Class Reference

System functions More...

Public Member Functions

double POWER (double Base, double Exponent)
 Returns a specified number raised to the specified power. More...
 
double SIN (double Angle)
 Returns the sine of the specified angle. More...
 
double SINH (double Angle)
 Returns the hyperbolic sine of the specified angle. More...
 
double COS (double Angle)
 Returns the cosine of the specified angle. More...
 
double COSH (double Angle)
 Returns the cosine of the specified angle. More...
 
double TG (double Angle)
 Returns the tangent of the specified angle. More...
 
double TGH (double Angle)
 Returns the hyperbolic tangent of the specified angle. More...
 
double COTH (double Angle)
 Returns the cotangent of the specified angle. More...
 
double ABS (double Value)
 Returns the absolute value of a specified number. More...
 
double SQRT (double Value)
 Returns the square root of a specified number. More...
 
double LN (double Value)
 Returns the natural (base 'e') logarithm of a specified number. More...
 
double LOG (double Value)
 Returns the base 10 logarithm of a specified number. More...
 
double LOG (double Value, double Base)
 Returns the logarithm of a specified number in a specified base. More...
 
double SUM (params double[] Values)
 Returns sum of given numeric parameters. More...
 
double AVERAGE (params double[] Values)
 Returns arithmetic averarge of given numeric parameters. More...
 
double MIN (params double[] Values)
 Returns the smallest of given numbers. More...
 
double MAX (params double[] Values)
 Returns the biggest of given numbers. More...
 
double PARMIN (params double[] Values)
 Returns the smallest of given numbers. Draw vertical stack of given formulas to output. More...
 
double PARMAX (params double[] Values)
 Returns the biggest of given numbers. Draw vertical stack of given formulas to output. More...
 
double CEILING (double Value)
 Returns number rounded up, away from zero, to the nearest integer. More...
 
double CEILING (double Value, double Significance)
 Returns number rounded up, away from zero, to the nearest multiple of significance. More...
 
double FLOOR (double Value)
 Returns number rounded down, away from zero, to the nearest integer. More...
 
double FLOOR (double Value, double Significance)
 Returns number rounded down, away from zero, to the nearest multiple of significance. More...
 
double ROUND (double Value)
 Rounds a numeric value to the nearest integet. More...
 
double ROUND (double Value, int Decimals)
 Rounds a numeric value to a specified number of fractional digits. More...
 
double ROUND (double Value, int Decimals, string Unit)
 Rounds a numeric value to a specified number of fractional digits. Value is expressed in given physical units. More...
 
double ROUNDUP (double Value)
 Rounds a numeric value UP to the nearest integet. More...
 
double ROUNDUP (double Value, int Decimals)
 Rounds a numeric value UP to a specified number of fractional digits. More...
 
double ROUNDUP (double Value, int Decimals, string Unit)
 Rounds a numeric value UP to a specified number of fractional digits. Value is expressed in given physical units. More...
 
double ROUNDDOWN (double Value)
 Rounds a numeric value DOWN to the nearest integet. More...
 
double ROUNDDOWN (double Value, int Decimals)
 Rounds a numeric value DOWN to a specified number of fractional digits. More...
 
double ROUNDDOWN (double Value, int Decimals, string Unit)
 Rounds a numeric value DOWN to a specified number of fractional digits. Value is expressed in given physical units. More...
 
double DIV (double I1, double I2)
 Calculates the quotient of two 32-bit signed integers. More...
 
double MOD (double I1, double I2)
 Returns the remainder of two 32-bit signed integers. More...
 
double ARCSIN (double Value)
 Returns the angle whose sine is the specified number. More...
 
double ARCCOS (double Value)
 Returns the angle whose cosine is the specified number. More...
 
double ARCTG (double Value)
 Returns the angle whose tangent is the specified number. More...
 
double ARCTG (double X, double Y)
 Returns the angle whose tangent is the quotient of two specified numbers. More...
 
double COMPARE (object O1, object O2)
 Compares two specified objects, and returns an integer that indicates their relative position in the sort order. More...
 
double COMPARE (object O1, object O2, double Precision)
 
double LinInterp (double X, params Point[] Points)
 Linear interpolation on a set of data points (x0, y0), (x1, y1), ..., (xn, yn). Function returns concatenation of linear interpolants between each pair of data points. More...
 
double LinExtrap (double X, PointD Point1, PointD Point2)
 Linear extrapolation on line specified by Point1 and Point2 More...
 
double PointFromLine (object Point, object L1, object L2)
 Returns distance from given point to line defined by two points. More...
 
double CUnit (double Value, string TargetUnit)
 Convert given value from source to target unit More...
 
double CUnit (double Value, string TargetUnit, string SourceUnit)
 Convert given value from source to target unit More...
 
double GetLength (object IList)
 Return length of given array (list). More...
 
bool IsNaN (double Value)
 Returns a value that indicates whether the specified value is not a number (NaN). More...
 
bool IsInfinity (double Value)
 Returns a value indicating whether the specified number evaluates to negative or positive infinity More...
 
bool IsNegativeInfinity (double Value)
 Returns a value indicating whether the specified number evaluates to negative infinity. More...
 
bool IsPositiveInfinity (double Value)
 Returns a value indicating whether the specified number evaluates to positive infinity. More...
 
bool IsNullOrWhiteSpace (double Value)
 Indicates whether a specified string is null, empty, or consists only of white-space characters. More...
 
bool IsNullOrEmpty (double Value)
 Indicates whether the specified string is null or an Empty string. More...
 
string Description (string VariableName)
 Returns description of variable with given name. Description is automatically translated to the selected language. More...
 
string Val (double D, int Precision)
 Reformats numeric input to required output with given precision. More...
 
string LowIndex (string Value)
 Convert given string to lower index More...
 
string UpIndex (string Value)
 Convert given string to upper index More...
 
string RenameVar (object Variable, string NewDrawName)
 Change DrawName of given variable to the value defined by the second parameter. More...
 
string TR (string Message)
 Return the translation of the message to the current language More...
 
void Text (object Param)
 Add text to the graphical output More...
 
void Img (string ImageID)
 Insert static (bitmap) image to the graphical output More...
 
void Block ()
 Creates new block in the graphical output More...
 
void Block (string Caption)
 Creates new collapsible block in the graphical output More...
 
void PageBreak ()
 Insert PageBreak mark into output. More...
 
void Break ()
 Terminates the closest enclosing loop or while statement in which it appears. Control is passed to the statement that follows the terminated statement, if any. More...
 
void Exit ()
 Terminates calculation run. More...
 
void Continue ()
 The continue statement passes control to the next iteration of the enclosing while, for, or foreach statement in which it appears. More...
 
object LoadExternCLC (string Path)
 Load and initialize calculation from extern file. More...
 
List< object > Sort (object List, string PropertyName)
 Sort list of object by the property specified by name. More...
 
List< object > Sort (object List, string PropertyName, bool Descendant)
 Sort list of object by the property specified by name. More...
 
RectangleF GetBounds (object Points)
 Returns rectangle bounds of the specified list of points. More...
 
TStructure SaveResults (eResultType ResultType, string Key)
 Save structured variable with all calculation results (defined by ESA_ID starting with 'Result.') to result-holder-node of IO structure More...
 
object SaveResults (eResultType ResultType, string Key, object Value)
 Save user-defined value to result-holder-node of IO structure More...
 
object ReadResults (eResultType ResultType)
 Returns complete results node from IO structure More...
 
object ReadResults (eResultType ResultType, string Key)
 Reads results set with given key from IO..Results More...
 
bool TryReadResults (eResultType ResultType, string Key, out object Value)
 Tries to read results from given result set More...
 
PointD[] RoundPolyline (IList Points, double Radius, int Segments)
 Round polyline with given radius More...
 
object GetDialogStructure ()
 Return structure which contains all inputs from the dialog More...
 

Detailed Description

System functions

Member Function Documentation

double ABS ( double  Value)

Returns the absolute value of a specified number.

Parameters
ValueA number that is greater than or equal to Double.MinValue, but less than or equal to Double.MaxValue.
Returns
A double-precision floating-point number, x, such that 0 ≤ x ≤ Double.MaxValue.
double ARCCOS ( double  Value)

Returns the angle whose cosine is the specified number.

Parameters
ValueA number representing a cosine, where d must be greater than or equal to -1, but less than or equal to 1.
Returns
Angle in degrees. A positive return value represents a counterclockwise angle from the x-axis; a negative return value represents a clockwise angle.
double ARCSIN ( double  Value)

Returns the angle whose sine is the specified number.

Parameters
ValueA number representing a sine, where d must be greater than or equal to -1, but less than or equal to 1.
Returns
Angle in degrees. A positive return value represents a counterclockwise angle from the x-axis; a negative return value represents a clockwise angle.
double ARCTG ( double  Value)

Returns the angle whose tangent is the specified number.

Parameters
ValueA number representing a tangent.
Returns
An angle, θ, measured in degrees, such that -π/2 ≤ θ ≤ π/2. Returns -π/2 if d is NegativeInfinity, or π/2 if d equals PositiveInfinity.
double ARCTG ( double  X,
double  Y 
)

Returns the angle whose tangent is the quotient of two specified numbers.

Parameters
XThe X coordinate of a point.
YThe Y coordinate of a point.
Returns
An angle, measured in degrees, such that -π ≤ θ ≤ π, and tan(θ) = y / x, where (x, y) is a point in the Cartesian plane.
double AVERAGE ( params double[]  Values)

Returns arithmetic averarge of given numeric parameters.

Parameters
ValuesNumeric expressions
Returns
Arithmetic average of given expressions
void Block ( )

Creates new block in the graphical output

void Block ( string  Caption)

Creates new collapsible block in the graphical output

Parameters
CaptionCaption of the collapsible block
void Break ( )

Terminates the closest enclosing loop or while statement in which it appears. Control is passed to the statement that follows the terminated statement, if any.

double CEILING ( double  Value)

Returns number rounded up, away from zero, to the nearest integer.

Parameters
ValueValue to be rounded
Returns
Number rounded up, away from zero, to the nearest integer
double CEILING ( double  Value,
double  Significance 
)

Returns number rounded up, away from zero, to the nearest multiple of significance.

Parameters
ValueValue to be rounded
SignificanceMultiple to which you want to round.
Returns
Number rounded up, away from zero, to the nearest multiple of significance
double COMPARE ( object  O1,
object  O2 
)

Compares two specified objects, and returns an integer that indicates their relative position in the sort order.

Parameters
O1First object to compare
O2Second object to compare
Returns
-1..First is less; 0..Object are the same; 1..First is greater; 2..Object can not be compared
double COMPARE ( object  O1,
object  O2,
double  Precision 
)

Parameters
O1First object to compare
O2Second object to compare
PrecisionPrecision used to compare numeric values. Values are considered to be same, if relative difference is less than 1+Power(10, -Precision). Presision=3 => difference is less than 1.001
Returns
-1..First is less; 0..Object are the same; 1..First is greater; 2..Object can not be compared
void Continue ( )

The continue statement passes control to the next iteration of the enclosing while, for, or foreach statement in which it appears.

double COS ( double  Angle)

Returns the cosine of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The cosine of angle. If angle is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.
double COSH ( double  Angle)

Returns the cosine of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The hyperbolic cosine of value. If value is equal to NegativeInfinity or PositiveInfinity, PositiveInfinity is returned. If value is equal to NaN, NaN is returned.
double COTH ( double  Angle)

Returns the cotangent of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The cotangent of angle. If angle is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.
double CUnit ( double  Value,
string  TargetUnit 
)

Convert given value from source to target unit

Parameters
ValueValue to be converted
TargetUnitUnit to which the value should be transferred
Returns
double CUnit ( double  Value,
string  TargetUnit,
string  SourceUnit 
)

Convert given value from source to target unit

Parameters
ValueValue to be converted
TargetUnitUnit to which the value should be transferred
SourceUnitInitial unit of the value
Returns
string Description ( string  VariableName)

Returns description of variable with given name. Description is automatically translated to the selected language.

Parameters
VariableNameName of variable
Returns
Description of variable translated to active language
double DIV ( double  I1,
double  I2 
)

Calculates the quotient of two 32-bit signed integers.

Parameters
I1The dividend.
I2The divisor.
Returns
The quotient of the specified numbers.
void Exit ( )

Terminates calculation run.

double FLOOR ( double  Value)

Returns number rounded down, away from zero, to the nearest integer.

Parameters
ValueValue to be rounded
Returns
Number rounded down, away from zero, to the nearest integer
double FLOOR ( double  Value,
double  Significance 
)

Returns number rounded down, away from zero, to the nearest multiple of significance.

Parameters
ValueValue to be rounded
SignificanceMultiple to which you want to round.
Returns
Number rounded down, away from zero, to the nearest multiple of significance
RectangleF GetBounds ( object  Points)

Returns rectangle bounds of the specified list of points.

Parameters
PointsList of points. Acceptable types: Point, PointF, PointD, structure.
Returns
Rectangle bounds of all the points in the list.
object GetDialogStructure ( )

Return structure which contains all inputs from the dialog

Returns
Structure which contains all inputs from the dialog
double GetLength ( object  IList)

Return length of given array (list).

Parameters
IListArray whose length is to be measured.
Returns
Return length of given array, or -1 for non-array types.
void Img ( string  ImageID)

Insert static (bitmap) image to the graphical output

Parameters
ImageIDImage identifier (set in image library)
bool IsInfinity ( double  Value)

Returns a value indicating whether the specified number evaluates to negative or positive infinity

Parameters
ValueValue to test
Returns
true if d evaluates to PositiveInfinity or NegativeInfinity; otherwise, false.
bool IsNaN ( double  Value)

Returns a value that indicates whether the specified value is not a number (NaN).

Parameters
ValueA double-precision floating-point number.
Returns
true if d evaluates to NaN; otherwise, false.
bool IsNegativeInfinity ( double  Value)

Returns a value indicating whether the specified number evaluates to negative infinity.

Parameters
ValueValue to test
Returns
true if d evaluates to NegativeInfinity; otherwise, false.
bool IsNullOrEmpty ( double  Value)

Indicates whether the specified string is null or an Empty string.

Parameters
ValueString to test
Returns
true if the value parameter is null or an empty string (""); otherwise, false.
bool IsNullOrWhiteSpace ( double  Value)

Indicates whether a specified string is null, empty, or consists only of white-space characters.

Parameters
ValueString to test
Returns
true if the value parameter is null or String.Empty, or if value consists exclusively of white-space characters.
bool IsPositiveInfinity ( double  Value)

Returns a value indicating whether the specified number evaluates to positive infinity.

Parameters
ValueValue to test
Returns
true if d evaluates to PositiveInfinity; otherwise, false.
double LinExtrap ( double  X,
PointD  Point1,
PointD  Point2 
)

Linear extrapolation on line specified by Point1 and Point2

Parameters
XX-coordinate of extrapolated value
Point1First point defining the extrapolation line
Point2Second point defining the extrapolation line
Returns
Linear extrapolation on the given line, at location X
double LinInterp ( double  X,
params Point[]  Points 
)

Linear interpolation on a set of data points (x0, y0), (x1, y1), ..., (xn, yn). Function returns concatenation of linear interpolants between each pair of data points.

Parameters
XX value for linear interpolation.
PointsSet of data points (x0, y0), (x1, y1), ..., (xn, yn).
Returns
Linear interpolation on a set of data points.
double LN ( double  Value)

Returns the natural (base 'e') logarithm of a specified number.

Parameters
ValueThe number whose logarithm is to be found.
Returns
The natural logarithm of Value
object LoadExternCLC ( string  Path)

Load and initialize calculation from extern file.

Parameters
PathPath to file containing required calculation.
Returns
Extern calculation object.
double LOG ( double  Value)

Returns the base 10 logarithm of a specified number.

Parameters
ValueA number whose logarithm is to be found.
Returns
The base 10 log of Value.
double LOG ( double  Value,
double  Base 
)

Returns the logarithm of a specified number in a specified base.

Parameters
ValueThe number whose logarithm is to be found.
BaseThe base of the logarithm.
Returns
Returns the logarithm of a specified number in a specified base.
string LowIndex ( string  Value)

Convert given string to lower index

Parameters
ValueString value to be converted to lower index.
Returns
Value converted to lower index.
double MAX ( params double[]  Values)

Returns the biggest of given numbers.

Parameters
ValuesArray of numbers.
Returns
Returns the biggest of given numbers
double MIN ( params double[]  Values)

Returns the smallest of given numbers.

Parameters
ValuesArray of numbers.
Returns
Returns the smallest of given numbers
double MOD ( double  I1,
double  I2 
)

Returns the remainder of two 32-bit signed integers.

Parameters
I1The dividend.
I2The divisor.
Returns
The remainder of the specified numbers.
void PageBreak ( )

Insert PageBreak mark into output.

double PARMAX ( params double[]  Values)

Returns the biggest of given numbers. Draw vertical stack of given formulas to output.

Parameters
ValuesArray of numbers.
Returns
Returns the biggest of given numbers
double PARMIN ( params double[]  Values)

Returns the smallest of given numbers. Draw vertical stack of given formulas to output.

Parameters
ValuesArray of numbers.
Returns
Returns the smallest of given numbers
double PointFromLine ( object  Point,
object  L1,
object  L2 
)

Returns distance from given point to line defined by two points.

Parameters
PointPoint. Acceptable types: Point, PointF, PointD, struct[X, Y].
L1First point on the line. Acceptable types: Point, PointF, PointD, struct[X, Y].
L2Second point on the lint. Acceptable types: Point, PointF, PointD, struct[X, Y].
Returns
Distance from the given point to the line in plain XY.
double POWER ( double  Base,
double  Exponent 
)

Returns a specified number raised to the specified power.

Parameters
BaseA double-precision floating-point number to be raised to a power.
ExponentA double-precision floating-point number that specifies a power.
Returns
The number x raised to the power y.
object ReadResults ( eResultType  ResultType)

Returns complete results node from IO structure

Parameters
ResultTypeResult type which determines result place holder: ResultType.Member, ResultType.Place, ResultType.Combi
Returns
Results node from IO structure
object ReadResults ( eResultType  ResultType,
string  Key 
)

Reads results set with given key from IO..Results

Parameters
ResultTypeResult type which determines result place holder: ResultType.Member, ResultType.Place, ResultType.Combi
KeyKey identifying results set in result place holder
Returns
Value saved in results holder Results set with given key
string RenameVar ( object  Variable,
string  NewDrawName 
)

Change DrawName of given variable to the value defined by the second parameter.

Parameters
VariableVariable whose DrawName is to be changed.
NewDrawNameNew DrawName of the variable.
Returns
New DrawName of the variable.
double ROUND ( double  Value)

Rounds a numeric value to the nearest integet.

Parameters
ValueA double-precision number to be rounded.
Returns
The nearest integer value.
double ROUND ( double  Value,
int  Decimals 
)

Rounds a numeric value to a specified number of fractional digits.

Parameters
ValueA double-precision number to be rounded.
DecimalsThe number of decimal places in the return value.
Returns
The nearest decimal value with given number of decimals.
double ROUND ( double  Value,
int  Decimals,
string  Unit 
)

Rounds a numeric value to a specified number of fractional digits. Value is expressed in given physical units.

Parameters
ValueA double-precision number to be rounded.
DecimalsThe number of decimal places in the return value.
UnitPhysical unit, in which the value is expressed
Returns
double ROUNDDOWN ( double  Value)

Rounds a numeric value DOWN to the nearest integet.

Parameters
ValueA double-precision number to be rounded.
Returns
The nearest lower integer value.
double ROUNDDOWN ( double  Value,
int  Decimals 
)

Rounds a numeric value DOWN to a specified number of fractional digits.

Parameters
ValueA double-precision floating-point number to be rounded.
DecimalsA double-precision floating-point number to be rounded.
Returns
The nearest lower decimal value with given number of decimals.
double ROUNDDOWN ( double  Value,
int  Decimals,
string  Unit 
)

Rounds a numeric value DOWN to a specified number of fractional digits. Value is expressed in given physical units.

Parameters
ValueA double-precision number to be rounded.
DecimalsThe number of decimal places in the return value.
UnitPhysical unit, in which the value is expressed
Returns
PointD [] RoundPolyline ( IList  Points,
double  Radius,
int  Segments 
)

Round polyline with given radius

Parameters
PointsPolyline points
RadiusRadius
SegmentsNumber of segments in radius
Returns
Points of rounded polyline
double ROUNDUP ( double  Value)

Rounds a numeric value UP to the nearest integet.

Parameters
ValueA double-precision number to be rounded.
Returns
The nearest higher integer value.
double ROUNDUP ( double  Value,
int  Decimals 
)

Rounds a numeric value UP to a specified number of fractional digits.

Parameters
ValueA double-precision number to be rounded.
DecimalsThe number of decimal places in the return value.
Returns
The nearest bigger decimal value with given number of decimals.
double ROUNDUP ( double  Value,
int  Decimals,
string  Unit 
)

Rounds a numeric value UP to a specified number of fractional digits. Value is expressed in given physical units.

Parameters
ValueA double-precision number to be rounded.
DecimalsThe number of decimal places in the return value.
UnitPhysical unit, in which the value is expressed
Returns
TStructure SaveResults ( eResultType  ResultType,
string  Key 
)

Save structured variable with all calculation results (defined by ESA_ID starting with 'Result.') to result-holder-node of IO structure

Parameters
ResultTypeResult type which determines result place holder: ResultType.Member, ResultType.Place, ResultType.Combi
KeyKey used to identify result structure saved in given results node
Returns
Value saved to the results
object SaveResults ( eResultType  ResultType,
string  Key,
object  Value 
)

Save user-defined value to result-holder-node of IO structure

Parameters
ResultTypeResult type which determines result place holder: ResultType.Member, ResultType.Place, ResultType.Combi
KeyKey used to identify value saved in given results node
ValueValue saved under given key
Returns
Value saved to the results
double SIN ( double  Angle)

Returns the sine of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The sine of angle. If angle is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.
double SINH ( double  Angle)

Returns the hyperbolic sine of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The hyperbolic sine of value. If value is equal to NegativeInfinity, PositiveInfinity, or NaN, this method returns a Double equal to value.
List<object> Sort ( object  List,
string  PropertyName 
)

Sort list of object by the property specified by name.

Parameters
ListList of objects to sort.
PropertyNameCase sensitive name of property used to sorting.
Returns
Sorted list of objects.
List<object> Sort ( object  List,
string  PropertyName,
bool  Descendant 
)

Sort list of object by the property specified by name.

Parameters
ListList of objects to sort.
PropertyNameCase sensitive name of property used to sorting.
DescendantTrue to descendant sorting. Otherwise false.
Returns
Sorted list of objects.
double SQRT ( double  Value)

Returns the square root of a specified number.

Parameters
ValueThe number whose square root is to be found.
Returns
The positive square root of Value.
double SUM ( params double[]  Values)

Returns sum of given numeric parameters.

Parameters
ValuesNumeric expressions
Returns
Sum of given expressions
void Text ( object  Param)

Add text to the graphical output

Parameters
ParamText content
double TG ( double  Angle)

Returns the tangent of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The tangent of angle. If angle is equal to NaN, NegativeInfinity, or PositiveInfinity, this method returns NaN.
double TGH ( double  Angle)

Returns the hyperbolic tangent of the specified angle.

Parameters
AngleAn angle, measured in degrees.
Returns
The hyperbolic tangent of value. If value is equal to NegativeInfinity, this method returns -1. If value is equal to PositiveInfinity, this method returns 1. If value is equal to NaN, this method returns NaN.
string TR ( string  Message)

Return the translation of the message to the current language

Parameters
MessageMessage to be translated
Returns
Translated message (if available) or the message itself.
bool TryReadResults ( eResultType  ResultType,
string  Key,
out object  Value 
)

Tries to read results from given result set

Parameters
ResultTypeResult type which determines result place holder: ResultType.Member, ResultType.Place, ResultType.Combi
KeyKey identifying results set in result place holder
ValueWhen this method returns, contains the value associated with the specified key, if the key is found; otherwise NULL. This parameter can be passed uninitialized.
Returns
TRUE if the structure contains an element with the specified key; otherwise FALSE.
string UpIndex ( string  Value)

Convert given string to upper index

Parameters
ValueString value to be converted to upper index.
Returns
Value converted to upper index.
string Val ( double  D,
int  Precision 
)

Reformats numeric input to required output with given precision.

Parameters
DInput numeric value or expression.
PrecisionOutput precision.
Returns
Returns input numeric value/expression.