math_get_epsilon

该函数返回当前的 epsilon 值。

默认 epsilon 值为 0.00001

有关 epsilon 的详细信息,请参阅函数 math_set_epsilon

 

语法:

math_get_epsilon();

 

返回:

Real

 

例子:

var e = math_get_epsilon();
if (e != 0.000001)
{
    math_set_epsilon(0.000001);
}

这将检索当前的精度值并将其存储在局部变量中,然后检查该变量并在需要时设置新的精度。