List of Mathematical Functions
The following mathematical functions are available:
abs(x: Real): Real
Returns the absolute value forx
.acos(x: Real): Real
Returns the arc sine ofx
with the unit of measurement set by the user.aint(x: Real): Real
Returns the integer portion ofx
.arc(x: Real): Real
Converts a value from degree into arc dimension.asin(x: Real): Real
Calculates the arc sine ofx
and returns it with the unit of measurement set by the user.atan(x: Real): Real
Returns the arc tangent ofx
with the unit of measurement set by the user.cos(x: Real): Real
Returns the cosine ofx
with the unit of measurement set by the user.cosh(x: Real): Real
Returns the hyperbolic cosine ofx
.exp(x: Real): Real
Returns the power of the base e, i.e. ex
.grd(x: Real): Real
Converts a value from arc dimension into degree.log(x: Real): Real
Calculates the natural logarithm.log10(x: Real): Real
Calculates the logarithm of the base 10.modulo(a: Real; b: Real): Real
Calculates the remainder of division a divided by b.nint(x: Real): Real
Roundsx
up or down to the next integer value.sig(x: Real): Real
Determines the sign (positive or negative) ofx
. Ifx
is a negative value, -1 will be returned. Ifx
is a positive value, 1 will be returned. Ifx
is equal to zero, 0 will be returned.sin(x: Real): Real
Caculates the sine ofx
and returns it with the unit of measurement set by the user.sinh(x: Real): Real
Calculates the hyperbolic sine ofx
.sqr(x: Real): Real
Calculates the square ofx
.sqrt(x: Real): Real
Calculates the square root ofx
.tan(x: Real): Real
Calculates the tangent ofx
and returns it with the unit of measurement set by the user.tanh(x: Real): Real
Returns the hyperbolic tangent ofx
.real_to_string(x: Real; precision: Real; decimalSeparator: String): String
Converts the numerical valuex
into a string. The parametersprecision
anddecimalSeparator
are optional and can be omitted. precision controls how many decimal places are to be output; the value-1
uses the HiCAD default; the value-2
returns all significant digits.decimalSeparator
controls which character is used between the digits before and after the decimal point; the default value here is','
.