math

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。



APIリファレンス
関数
abs
math.abs(x:number):number
パラメータ
戻り値
コードサンプル
数学の絶対値

acos
math.acos(x:number):number
パラメータ
戻り値
コードサンプル
数学のアコス

asin
math.asin(x:number):number
パラメータ
戻り値
コードサンプル
数学のアークサイン

atan
math.atan(x:number):number
パラメータ
戻り値
コードサンプル
数学のアークタンジェント

atan2
math.atan2(
パラメータ
戻り値
コードサンプル
数学のアークタンジェント

ceil
math.ceil(x:number):number
パラメータ
戻り値
コードサンプル
数学の天井

clamp
math.clamp(
x:number, min:number, max:number
パラメータ
min:number
max:number
戻り値
コードサンプル
数学クランプ

cos
math.cos(x:number):number
パラメータ
戻り値
コードサンプル
数学のコサイン

cosh
math.cosh(x:number):number
パラメータ
戻り値
コードサンプル
数学のコサインハイパボリック

deg
math.deg(x:number):number
パラメータ
戻り値
コードサンプル
数学の度数

exp
math.exp(x:number):number
パラメータ
戻り値
コードサンプル
数学の指数

floor
math.floor(x:number):number
パラメータ
戻り値
コードサンプル
数学の切り捨て

fmod
math.fmod(
パラメータ
戻り値
コードサンプル
数学の剰余

frexp
math.frexp(x:number):number,number
パラメータ
戻り値
コードサンプル
数学の Frexp

isfinite
math.isfinite(x:number):boolean
パラメータ
戻り値
コードサンプル
数学の有限性

isinf
math.isinf(x:number):boolean
パラメータ
戻り値
コードサンプル
数学の無限大

isnan
math.isnan(x:number):boolean
パラメータ
戻り値
コードサンプル
数学のIsnan

ldexp
math.ldexp(
パラメータ
戻り値
コードサンプル
数学 Ldexp

lerp
math.lerp(
パラメータ
戻り値
コードサンプル
数学の線形補間

log
math.log(
x:number, base:number
パラメータ
base:number
既定値: 2.7182818
戻り値
コードサンプル
数学の対数

log10
math.log10(x:number):number
パラメータ
戻り値
コードサンプル
数学の対数(Log10)

map
math.map(
x:number, inmin:number, inmax:number, outmin:number, outmax:number
パラメータ
inmin:number
inmax:number
outmin:number
outmax:number
戻り値
コードサンプル
数学マップ

max
math.max(
x:number, ...:number
パラメータ
...:number
戻り値
コードサンプル
数学の最大値

min
math.min(
x:number, ...:number
パラメータ
...:number
戻り値
コードサンプル
数学の最小値

modf
math.modf(x:number):number,number
パラメータ
戻り値
コードサンプル
数学の剰余

noise
math.noise(
パラメータ
既定値: 0
既定値: 0
戻り値
コードサンプル
数学ノイズ

pow
math.pow(
パラメータ
戻り値
コードサンプル
数学の累乗

rad
math.rad(x:number):number
パラメータ
戻り値
コードサンプル
数学のラジアン

random
math.random(
パラメータ
戻り値
コードサンプル
数学の乱数

randomseed
math.randomseed(x:number):()
パラメータ
戻り値
()
コードサンプル
Math Randomseed

round
math.round(x:number):number
パラメータ
戻り値
コードサンプル
数学の四捨五入

sign
math.sign(x:number):number
パラメータ
戻り値
コードサンプル
数学の符号

sin
math.sin(x:number):number
パラメータ
戻り値
コードサンプル
数学のサイン

sinh
math.sinh(x:number):number
パラメータ
戻り値
コードサンプル
数学の双曲線正弦

sqrt
math.sqrt(x:number):number
パラメータ
戻り値
コードサンプル
数学の平方根

tan
math.tan(x:number):number
パラメータ
戻り値
コードサンプル
数学のタンジェント

tanh
math.tanh(x:number):number
パラメータ
戻り値
コードサンプル
数学の双曲線正接

プロパティ
e
math.e:number
コードサンプル
数学 E

huge
math.huge:number
コードサンプル
数学の無限大

nan
math.nan:number
コードサンプル
数学 NaN

phi
math.phi:number
コードサンプル
数学の黄金比

pi
math.pi:number
コードサンプル
数学の円周率

sqrt2
math.sqrt2:number
コードサンプル
数学の平方根2

tau
math.tau:number
コードサンプル
数学のタウ

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。