# (abs / floor / sqrt / sin / cos) of ( )｜積木用法詳解

> 「(abs / floor / sqrt / sin / cos) of ( )」屬於 Scratch 3.0 的「運算積木」分類，是製作互動遊戲、動畫與實用工具時不可或缺的核心積木。

Scratch 3.0 積木辭典：(abs / floor / sqrt / sin / cos) of ( ) (運算積木). 「(abs / floor / sqrt / sin / cos) of ( )」屬於 Scratch 3.0 的「運算積木」分類，是製作互動遊戲、動畫與實用工具時不可或缺的核心積木。

## 積木功能與使用時機

「(abs / floor / sqrt / sin / cos) of ( )」屬於 Scratch 3.0 的「運算積木」分類，是製作互動遊戲、動畫與實用工具時不可或缺的核心積木。

建議先在空白專案單獨組裝下方最小範例，按下綠旗前先預測結果，再一次只修改一個數字觀察變化。

## 動手試試看範例

對照以下 Scratch 3.0 積木範例在編輯器實作測試：

**(abs / floor / sqrt / sin / cos) of ( )**

- When green flag clicked
- Forever
-   Set y to ((sin of ((timer) * (200))) * (15))

動手試試看: Makes a coin or ghost bob smoothly up and down like a wave.

## 相關積木指南

建議先在空白專案單獨組裝下方最小範例，按下綠旗前先預測結果，再一次只修改一個數字觀察變化。

- [回到「運算積木」總覽](/zh-tw/dictionary/operators/): 運算積木
- [回到 Scratch 積木辭典首頁](/zh-tw/dictionary/): Scratch 3.0

更新日期: 2026-11-23
作者: [鈴木孝昌 (Takamasa Suzuki)](https://scratch.gmnavi.jp/about/author/)
Japanese Edition: https://scratch.gmnavi.jp/dictionary/operators/math-function/

[Scratch大全 (繁體中文)](https://scratch.gmnavi.jp/zh-tw/)
