# その他

### 数値から単位やパーセンテージを削除する

単位、比率、またはパーセンテージを数値から削除するには、それを `number`（または小数）に変換します。

```
$100を数値に    | 100
40/日を小数に | 40
20%を小数に    | 0.2
```

### 比例 / 三項比

[三項比](https://en.wikipedia.org/wiki/Cross-multiplication#Rule_of_Three)としても知られるこれらのフレーズは、比例を維持するために必要な数値を求めるのに役立ちます。

```
6 対 60 は 8 対 何か | 80
5 対 10 は 何 対 80 か | 40
```

これらのフレーズは単位とも機能します。

```
5 km 対 500m は 何 対 か | 5 mm
30分 対 3時間 は 何 対 60秒 か | 10秒
```

### 数値の比較

Soulverのmin()とmax()

```
100と200の大きい方  | 200
100と200の大きい方 | 200
                                                     
5と10の小さい方    | 5
5と10の小さい方    | 5
```

### 中点

```
175の半分の値    | 87.5
150と300の中点  | 225
```

### ランダムな数値

指定された範囲でランダムな整数を生成するには：

```
1から10の間のランダムな数値 | 7
```

ランダムな浮動小数点数を生成するには、範囲 0 から 1 を使用します。

```
0から1の間のランダムな数値 | 0.4793193723
```

### LCMとGCD

最小公倍数と最大公約数

```
20と30の最大公約数 | 10
5と8の最小公倍数   | 40
```

### 順列と組み合わせ

```
10の順列3 | 720
25の組み合わせ3 | 2,300
```

または、より分かりやすい構文を使用することもできます。

```
10から3の順列 | 720
25から3の組み合わせ | 2,300
```

### クランプ（制限）

```
26を5と25の間に制限 | 25
4を5から25の間に制限 | 5
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.soulver.app/ja/rifarensu/general/general.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
