abs
🧼 Strips away the minus sign
Returns the absolute value of a number.
中文对照 · Chinese
🧼 洗掉负号的魔法洗衣机
把负数变成正数,正数和 0 保持不变,对应数学里的 $|x|$。
Code example
d = abs(-15)Explore 100 bilingual word cards →
Returns the absolute value of a number.
🧼 洗掉负号的魔法洗衣机
把负数变成正数,正数和 0 保持不变,对应数学里的 $|x|$。
d = abs(-15)Explore 100 bilingual word cards →