Floating point math functions

Top  Previous  Next

Visual DialogScript supports the following functions which can be used to perform floating point calculations:

 

@FABS

absolute

@FADD

addition

@FATN

arctangent

@FCOS

cosine

@FDIV

division

@FEXP

exp

@FINT

 

@FLN

ln

@FMUL

multiplication

@FRAC

Fraction

@FROUND

Round

@FSIN

sine

@FSQT

square root

@FSUB

subtraction

 

The @FORMAT function can be used to convert floating point values to a fixed number of decimal places for display or comparison purposes.

 

Note that Visual DialogScript does not support the use of commas as decimal separators, as used in some European countries. This would be incompatible with the use of commas as parameter separators in DialogScript commands and functions.