Class SysketLibrary.NumberUtil
数値関連のユーティリティメソッドを提供する。
(メソッドはいずれもstaticで、本クラスをnewする必要はありません)
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
SysketLibrary.NumberUtil.toNum(str, sub)
strを数値変換する。できない場合はsubを返す。
|
Method Detail
<static>
SysketLibrary.NumberUtil.toNum(str, sub)
strを数値変換する。できない場合はsubを返す。
- Parameters:
- str
- 対象文字列
- sub
- 数値変換できない場合に返す
- Returns:
- 変換した数値、できなければsub