ヘルプのaから順番にさらってるので、absの次はacosです。
ヘルプの説明はこんなのです。
acos({expr}) *acos()*
Return the arc cosine of {expr} measured in radians, as a
|Float| in the range of [0, pi].
{expr} must evaluate to a |Float| or a |Number| in the range
[-1, 1].
Examples:
:echo acos(0)
1.570796
:echo acos(-0.5)
2.094395
{only available when compiled with the |+float| feature}
:echo acos(-1)

3.141593が表示されました。桁落ちしてるんですね。
-1.0を指定してみます。
:echo acos(-1.0)

同じですね。
次は、1を指定。
:echo acos(1)

0.0が返りました。


コメント