-
Notifications
You must be signed in to change notification settings - Fork 10
fnc c0016 roundZero
tickle edited this page Feb 21, 2021
·
2 revisions
- 0未満の数字に対して0に変換する関数。
- 0未満の数字に対して別の値を指定することもできる。
引数 | 型 | 必須 | 指定内容 |
---|---|---|---|
_num | number | * | 数字 |
_init | number | _numが0未満のときに適用する値を指定。デフォルトは0。 |
- 変換後の数字(0以上の場合は_numの値をそのまま返却する)
console.log(roundZero(7)); // 7
console.log(roundZero(0)); // 0
console.log(roundZero(-5)); // 0
console.log(roundZero(-2, -1)); // -1
- Dancing Onigiri (CW Edition) WikiのテキストはCC BY-SA 4.0の下で利用可能です。
- Dancing Onigiri "CW Edition" Wiki text available under CC BY-SA 4.0.
- Wiki 更新履歴 / History
© 2018 ティックル & Contributors.
English | Japanese
- 譜面ヘッダー仕様 📝
- 譜面本体仕様 📝
- 譜面エフェクト仕様 (速度/ 色/ 背景) 📝
- グラデーション仕様 📝
- 共通設定ファイル仕様 📝
- スキンファイル仕様 📝
- 作品URLのクエリパラメーター仕様 📝
- 譜面データ中の特殊文字の取り扱い 📝
- キーの仕様について 📝
- KeyCtrl属性で使用するキーコード 📝
- 実行時エラー一覧 📝