Skip to main content

ZOS-API interface 2025 R2

ZOSAPI.Tools.IAPIUtilities Interface Reference

Last update: 16.07.2025

Public Member Functions

string ConvertToStringFixed (double x, int digits)
 Format the value as decimal.
 
string ConvertToStringFixed (double x)
 Format the value as decimal based on preferences.
 
string ConvertToStringExp (double x, int digits)
 Format the value as exponential.
 
string ConvertToStringExp (double x)
 Format the value as exponential based on preferences.
 
string ConvertToStringCust (double x, int digits, double expBelow, double expAbove)
 
string ConvertToStringPref (double x)
 

Member Function Documentation

◆ ConvertToStringCust()

string ZOSAPI.Tools.IAPIUtilities.ConvertToStringCust ( double  x,
int  digits,
double  expBelow,
double  expAbove 
)

◆ ConvertToStringExp() [1/2]

string ZOSAPI.Tools.IAPIUtilities.ConvertToStringExp ( double  x)

Format the value as exponential based on preferences.

Parameters
xThe value to be formatted
Returns
The formatted value

◆ ConvertToStringExp() [2/2]

string ZOSAPI.Tools.IAPIUtilities.ConvertToStringExp ( double  x,
int  digits 
)

Format the value as exponential.

Parameters
xThe value to be formatted
digitsThe number of digits after the decimal point
Returns
The formatted value

◆ ConvertToStringFixed() [1/2]

string ZOSAPI.Tools.IAPIUtilities.ConvertToStringFixed ( double  x)

Format the value as decimal based on preferences.

Parameters
xThe value to be formatted
Returns
The formatted value

◆ ConvertToStringFixed() [2/2]

string ZOSAPI.Tools.IAPIUtilities.ConvertToStringFixed ( double  x,
int  digits 
)

Format the value as decimal.

Parameters
xThe value to be formatted
digitsThe number of digits after the decimal point
Returns
The formatted value

◆ ConvertToStringPref()

string ZOSAPI.Tools.IAPIUtilities.ConvertToStringPref ( double  x)

Connect with Ansys