算术运算
161 个节点
本页内容 161
原子质量单位
函数Atomic mass constant (kg)
1 unified atomic mass unit (u).
原子质量单位() -> 数字
double AtomicMassUnit()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
阿伏伽德罗常数
函数Avogadro's number (1/mol)
Number of particles per mole.
阿伏伽德罗常数() -> 数字
double Avogadro()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
玻尔兹曼常数
函数Boltzmann constant (J/K)
Relates temperature to energy.
玻尔兹曼常数() -> 数字
double BoltzmannConstant()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
库仑常数
函数Coulomb constant (N·m^2/C^2)
k_e = 1 / (4π ε₀)
库仑常数() -> 数字
double CoulombConstant()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
自然常数 e
函数Euler's number (e).
Base of the natural logarithm; fundamental in calculus, growth/decay processes, and complex analysis.
自然常数 e() -> 数字
double E()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
电子质量
函数Electron mass (kg)
Rest mass of an electron.
电子质量() -> 数字
double ElectronMass()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
元电荷
函数Elementary charge (C)
Magnitude of charge of a proton/electron.
元电荷() -> 数字
double ElementaryCharge()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
法拉第常数
函数Faraday constant (C/mol)
Charge per mole of electrons.
法拉第常数() -> 数字
double Faraday()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
气体常数
函数Universal gas constant (J/(mol·K))
R = N_A * k_B
气体常数() -> 数字
double GasConstant()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
引力常数
函数Gravitational constant (m^3·kg^-1·s^-2)
Fundamental constant in Newtonian gravity.
引力常数() -> 数字
double GravitationalConstant()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
中子质量
函数Neutron mass (kg)
Rest mass of a neutron.
中子质量() -> 数字
double NeutronMass()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
圆周率
函数Archimedes' constant (π).
Ratio of a circle's circumference to its diameter; ubiquitous in geometry, trigonometry, and wave mechanics.
圆周率() -> 数字
double PI()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
普朗克常数
函数Planck constant (J·s)
Relates energy and frequency: E = h·ν.
普朗克常数() -> 数字
double PlanckConstant()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
质子质量
函数Proton mass (kg)
Rest mass of a proton.
质子质量() -> 数字
double ProtonMass()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
约化普朗克常数
函数Reduced Planck constant (J·s)
ħ = h / (2π)
约化普朗克常数() -> 数字
double ReducedPlanckConstant()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
里德伯常数
函数Rydberg constant (1/m)
Appears in atomic spectra.
里德伯常数() -> 数字
double Rydberg()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
光速
函数Speed of light in vacuum (m/s)
Exact value defined by SI.
光速() -> 数字
double SpeedOfLight()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
标准大气压
函数Standard atmospheric pressure (Pa)
1 atm in SI units.
标准大气压() -> 数字
double StandardAtmosphere()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
标准重力加速度
函数Standard acceleration due to gravity on Earth (m/s^2)
Conventional standard value.
标准重力加速度() -> 数字
double StandardGravity()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
斯特藩-玻尔兹曼常数
函数Stefan–Boltzmann constant (W·m^-2·K^-4)
Used in blackbody radiation.
斯特藩-玻尔兹曼常数() -> 数字
double StefanBoltzmann()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
二倍圆周率 τ
函数Tau (τ = 2π).
Ratio of a circle's circumference to its radius; often preferred in formulas involving full rotations.
二倍圆周率 τ() -> 数字
double Tau()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
真空磁导率
函数Vacuum permeability (N/A^2)
Magnetic constant μ₀.
真空磁导率() -> 数字
double VacuumPermeability()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
真空介电常数
函数Vacuum permittivity (F/m)
Electric constant ε₀.
真空介电常数() -> 数字
double VacuumPermittivity()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
维恩位移常数
函数Wien displacement constant (m·K)
Peak wavelength of blackbody radiation.
维恩位移常数() -> 数字
double WienDisplacement()
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
绝对值
函数返回双精度浮点数的绝对值。
绝对值(数字: 数字) -> 数字
double AbsoluteValue(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
反余弦
函数返回余弦为指定数字的角度。
反余弦(数字: 数字) -> 数字
double Acos(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
反双曲余弦
函数返回其双曲余弦为指定数的角。
反双曲余弦(数字: 数字) -> 数字
double Acosh(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
英亩转平方米
函数Converts acres to square meters by multiplying by 4,046.8564224, the international acre.
英亩转平方米(英亩: 数字) -> 数字
double AcresToSquareMeters(double acres)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 英亩 | 数字 | — | The value in acres. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
加法
函数重载 1/4
加法(第一个加数: 数字, 第二个加数: 数字) -> 数字
double Add(double summand1, double summand2)
Adds two numbers and returns the sum.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个加数 | 数字 | — | The first number to add. |
| 第二个加数 | 数字 | — | The second number to add. |
返回
| 和 | 数字 |
重载 2/4
加法 -> 数字
第一个加数: 数字
第二个加数: 数字
第三个加数: 数字double Add(double summand1, double summand2, double summand3)
此节点没有文档说明。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个加数 | 数字 | — | |
| 第二个加数 | 数字 | — | |
| 第三个加数 | 数字 | — |
返回
| 结果 | 数字 |
重载 3/4
加法 -> 数字
第一个加数: 数字
第二个加数: 数字
第三个加数: 数字
第四个加数: 数字double Add(
double summand1,
double summand2,
double summand3,
double summand4)此节点没有文档说明。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个加数 | 数字 | — | |
| 第二个加数 | 数字 | — | |
| 第三个加数 | 数字 | — | |
| 第四个加数 | 数字 | — |
返回
| 结果 | 数字 |
重载 4/4
加法 -> 数字
第一个加数: 数字
第二个加数: 数字
第三个加数: 数字
第四个加数: 数字
第五个加数: 数字double Add(
double summand1,
double summand2,
double summand3,
double summand4,
double summand5)此节点没有文档说明。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个加数 | 数字 | — | |
| 第二个加数 | 数字 | — | |
| 第三个加数 | 数字 | — | |
| 第四个加数 | 数字 | — | |
| 第五个加数 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
反正弦
函数返回指定数字的正弦值所对应的角度。
反正弦(数字: 数字) -> 数字
double Asin(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
反双曲正弦
函数返回其双曲正弦为指定数字的角度。
反双曲正弦(数字: 数字) -> 数字
double Asinh(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
反正切
函数返回其切线为指定值的角度。
反正切(数字: 数字) -> 数字
double Atan(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
四象限反正切
函数返回其切线为两个指定数字的商的角度。
四象限反正切(Y: 数字, X: 数字) -> 数字
double Atan2(double y, double x)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| Y | 数字 | — | |
| X | 数字 | — |
返回
| 返回角度 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
反双曲正切
函数返回其双曲正切为指定数字的角度。
反双曲正切(数字: 数字) -> 数字
double Atanh(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
标准大气压转帕斯卡
函数Converts standard atmospheres to pascals by multiplying by 101,325, the exact standard atmosphere.
标准大气压转帕斯卡(标准大气压: 数字) -> 数字
double AtmToPascals(double atm)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 标准大气压 | 数字 | — | The value in standard atmospheres. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
巴转帕斯卡
函数Converts bar to pascals by multiplying by 100,000.
巴转帕斯卡(巴: 数字) -> 数字
double BarToPascals(double bar)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 巴 | 数字 | — | The value in bar. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
大于
函数Determines whether the first double is greater than the second double.
大于(第一个: 数字, 第二个: 数字) -> 真否
bool BiggerThan(double first, double second)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | 数字 | — | The first double to compare. |
| 第二个 | 数字 | — | The second double to compare. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
大于或等于
函数Determines whether the first double is greater than or equal to the second double.
大于或等于(第一个: 数字, 第二个: 数字) -> 真否
bool BiggerThanOrEqual(double first, double second)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | 数字 | — | The first double to compare. |
| 第二个 | 数字 | — | The second double to compare. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
前一个可表示的数
函数返回一个与指定值比较小的最大值。
前一个可表示的数(数字: 数字) -> 数字
double BitDecrement(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
后一个可表示的数
函数返回与指定值比较大的最小值。
后一个可表示的数(数字: 数字) -> 数字
double BitIncrement(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
卡路里转焦耳
函数Converts calories to joules by multiplying by 4.184, the thermochemical calorie.
卡路里转焦耳(卡路里: 数字) -> 数字
double CaloriesToJoules(double cal)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 卡路里 | 数字 | — | The value in calories. |
返回
| 结果 | 数字 |
备注
This is the small calorie; the food Calorie on nutrition labels is a kilocalorie, 1,000 of these.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
向上取整
函数返回大于或等于指定双精度浮点数的最小整数值。
向上取整(数字: 数字) -> 数字
double Ceiling(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
摄氏度转华氏度
函数Converts degrees Celsius to degrees Fahrenheit by the formula °F = °C × 9/5 + 32.
摄氏度转华氏度(C: 数字) -> 数字
double CelsiusToFahrenheit(double c)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| C | 数字 | — | The value in degrees Celsius. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
摄氏度转开尔文
函数Converts degrees Celsius to kelvins by adding 273.15.
摄氏度转开尔文(C: 数字) -> 数字
double CelsiusToKelvin(double c)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| C | 数字 | — | The value in degrees Celsius. |
返回
| 结果 | 数字 |
备注
Values below absolute zero (-273.15 °C) are not rejected and give a negative kelvin value.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
厘米转米
函数Converts centimeters to meters by dividing by 100.
厘米转米(厘米: 数字) -> 数字
double CentimetersToMeters(double cm)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 厘米 | 数字 | — | The value in centimeters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
限制范围
函数重载 1/3
限制范围(值: 数字, 最小值: 数字, 最大值: 数字) -> 数字
double Clamp(double value, double min, double max)
返回被限制到最小值和最大值之间的值。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字 | — | |
| 最小值 | 数字 | — | |
| 最大值 | 数字 | — |
返回
| 返回值 | 数字 |
重载 2/3
限制范围(值: 整数, 最小值: 整数, 最大值: 整数) -> 整数
int Clamp(int value, int min, int max)
Limits a whole number to the inclusive range from Min to Max, for example to keep an index inside a list.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 整数 | — | The number to clamp. |
| 最小值 | 整数 | — | The smallest allowed value. |
| 最大值 | 整数 | — | The largest allowed value; it should not be less than Min, which is not checked. |
返回
| 结果 | 整数 |
重载 3/3
限制范围 -> 低精度数字
X: 低精度数字
A: 低精度数字
B: 低精度数字float Clamp(float x, float a, float b)
Limits a number to the inclusive range from A to B in single precision.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 低精度数字 | — | The number to clamp. |
| A | 低精度数字 | — | The smallest allowed value. |
| B | 低精度数字 | — | The largest allowed value; it should not be less than A, which is not checked. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
限制到 0 到 1
函数重载 1/2
限制到 0 到 1(V: 数字) -> 数字
double Clamp01(double v)
Limits a number to the range 0 to 1, replacing anything below 0 with 0 and anything above 1 with 1.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| V | 数字 | — | The number to clamp. |
返回
| 结果 | 数字 |
重载 2/2
限制到 0 到 1(值: 低精度数字) -> 低精度数字
float Clamp01(float value)
Limits a number to the range 0 to 1 in single precision, replacing anything below 0 with 0 and anything above 1 with 1.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 低精度数字 | — | The number to clamp. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
限制到字节范围
函数重载 1/2
限制到字节范围(值: 数字) -> 字节
byte ClampToByteSize(double value)
Round and clamp by absolute value to byte value range.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字 | — |
返回
| 结果 | 字节 |
重载 2/2
限制到字节范围(值: 低精度数字) -> 字节
byte ClampToByteSize(float value)
Clamp byte-value floats.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 低精度数字 | — | [0, 255] range |
返回
| 结果 | 字节 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
限制到小正整数范围
函数Clamp ushort-value floats.
限制到小正整数范围(值: 低精度数字) -> 小正整数
ushort ClampToUShortSize(float value)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 低精度数字 | — | [0, 65535] range |
返回
| 结果 | 小正整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
计算圆周率
函数Computes PI to arbitrary accuracy (digits after decimal point).
计算圆周率(位数: 整数) -> 文本
string ComputePi(int digits)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 位数 | 整数 | — |
返回
| 结果 | 文本 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
复制符号
函数返回一个具有 x 的大小和 y 的符号的值。
复制符号(数字 1: 数字, 数字 2: 数字) -> 数字
double CopySign(double number1, double number2)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 1 | 数字 | — | |
| 数字 2 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
余弦
函数返回指定角度的余弦值。
余弦(数字: 数字) -> 数字
double Cos(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
双曲余弦
函数返回指定角度的双曲余弦。
双曲余弦(数字: 数字) -> 数字
double Cosh(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
立方根
函数返回指定数字的立方根。
立方根(数字: 数字) -> 数字
double CubeRoot(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 立方根值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
立方米转升
函数Converts cubic meters to liters by multiplying by 1,000.
立方米转升(立方米: 数字) -> 数字
double CubicMetersToLiters(double m3)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 立方米 | 数字 | — | The value in cubic meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
角度转弧度
函数Converts degrees to radians by multiplying by π/180.
角度转弧度(角度: 数字) -> 数字
double DegreesToRadians(double degrees)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 角度 | 数字 | — | The value in degrees. |
返回
| 结果 | 数字 |
备注
Use it to feed an angle measured in degrees to the trigonometry nodes, which work in radians; any value is accepted, and no wrapping into one turn is done.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
除法
函数将第一个数字除以第二个数字并返回商。
除法(被除数: 数字, 除数: 数字) -> 数字
double Divide(double dividend, double divisor)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 被除数 | 数字 | — | 要被除的数字。 |
| 除数 | 数字 | — | 用来除的数字。 |
返回
| 商 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
电子伏特转焦耳
函数Converts electronvolts to joules by multiplying by the elementary charge, 1.602176634e-19 (exact since the 2019 SI redefinition).
电子伏特转焦耳(电子伏特: 数字) -> 数字
double ElectronVoltsToJoules(double ev)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 电子伏特 | 数字 | — | The value in electronvolts. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
等于
函数Determines whether the first double is equal to the second double.
等于(第一个: 数字, 第二个: 数字) -> 真否
bool EqualTo(double first, double second)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | 数字 | — | The first double to compare. |
| 第二个 | 数字 | — | The second double to compare. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
指数函数
函数返回e的指定幂。
指数函数(数字: 数字) -> 数字
double Exp(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
华氏度转摄氏度
函数Converts degrees Fahrenheit to degrees Celsius by the formula °C = (°F − 32) × 5/9.
华氏度转摄氏度(华氏度: 数字) -> 数字
double FahrenheitToCelsius(double f)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 华氏度 | 数字 | — | The value in degrees Fahrenheit. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
英尺转米
函数Converts feet to meters by multiplying by 0.3048, the exact international foot.
英尺转米(英尺: 数字) -> 数字
double FeetToMeters(double ft)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 英尺 | 数字 | — | The value in feet. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
向下取整
函数返回小于或等于指定的双精度浮点数的最大整数值。
向下取整(数字: 数字) -> 数字
double Floor(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
小数部分
函数Gives the fractional part of a number measured up from the next whole number below it, always from 0 to 1, so 2.75 gives 0.75 and -0.25 gives 0.75 (not -0.25).
小数部分(V: 低精度数字) -> 低精度数字
float Frac(float v)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| V | 低精度数字 | — | The number. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
融合乘加
函数返回 (x * y) + z,作为一个三元操作四舍五入。
融合乘加(X: 数字, Y: 数字, Z: 数字) -> 数字
double FusedMultiplyAdd(double x, double y, double z)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 数字 | — | |
| Y | 数字 | — | |
| Z | 数字 | — |
返回
| 返回值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
加仑转升
函数Converts gallons to liters by multiplying by 3.785411784, the exact US liquid gallon.
加仑转升(加仑: 数字) -> 数字
double GallonsToLiters(double gal)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 加仑 | 数字 | — | The value in gallons. |
返回
| 结果 | 数字 |
备注
The imperial (UK) gallon, about 4.546 liters, is a different unit and is not handled here.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
克转千克
函数Converts grams to kilograms by dividing by 1,000.
克转千克(克: 数字) -> 数字
double GramsToKilograms(double g)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 克 | 数字 | — | The value in grams. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
赫兹转千赫兹
函数Converts hertz to kilohertz by dividing by 1,000.
赫兹转千赫兹(赫兹: 数字) -> 数字
double HertzToKilohertz(double hz)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 赫兹 | 数字 | — | The value in hertz. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
马力转瓦特
函数Converts horsepower to watts by multiplying by 745.699872, the mechanical (imperial) horsepower.
马力转瓦特(马力: 数字) -> 数字
double HorsepowerToWatts(double hp)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 马力 | 数字 | — | The value in horsepower. |
返回
| 结果 | 数字 |
备注
Metric horsepower (PS, about 735.5 W) is a different unit and is not handled here.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
小时转秒
函数Converts hours to seconds by multiplying by 3,600.
小时转秒(小时: 数字) -> 数字
double HoursToSeconds(double h)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 小时 | 数字 | — | The value in hours. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
IEEE 余数
函数返回指定数字除以另一个指定数字所得到的余数。
IEEE 余数(X: 数字, Y: 数字) -> 数字
double IEEERemainder(double x, double y)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 数字 | — | |
| Y | 数字 | — |
返回
| 余数 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
以 2 为底的整数对数
函数返回指定数字的基数 2 整数对数。
以 2 为底的整数对数(数字: 数字) -> 数字
double ILogB(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 返回值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
英寸转米
函数Converts inches to meters by multiplying by 0.0254, the exact international inch.
英寸转米(英寸: 数字) -> 数字
double InchesToMeters(double inches)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 英寸 | 数字 | — | The value in inches. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
插值
函数重载 1/4
插值(比例: 数字, 值 1: 数字, 值 2: 数字) -> 数字
double Interp(double ratio, double v1, double v2)
Linear interpolation.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 比例 | 数字 | — | |
| 值 1 | 数字 | — | |
| 值 2 | 数字 | — |
返回
| 结果 | 数字 |
重载 2/4
插值 -> 数字
最小值: 数字
最大值: 数字
比例: 数字
函数: 文本
幂: 数字double Interp(
double min,
double max,
double ratio,
string function = "linear",
double power = 1)Maps a ratio onto the range from Min to Max: 0 gives Min, 1 gives Max, and values in between fall proportionally between them.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 最小值 | 数字 | — | The value at ratio 0. |
| 最大值 | 数字 | — | The value at ratio 1. |
| 比例 | 数字 | — | The position between the two, normally from 0 to 1. |
| 函数 | 文本 | linear | The name of the easing curve; reserved, only "linear" behaviour exists. |
| 幂 | 数字 | 1 | The exponent for a power curve; reserved and currently unused. |
返回
| 结果 | 数字 |
备注
Only linear interpolation is implemented: Function and Power are currently ignored. Ratio is not clamped, so values outside 0 to 1 extrapolate.
重载 3/4
插值 -> 低精度数字
比例: 低精度数字
值 1: 低精度数字
值 2: 低精度数字float Interp(float ratio, float v1, float v2)
Blends linearly from V1 to V2 in single precision: a Ratio of 0 gives V1 and 1 gives V2.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 比例 | 低精度数字 | — | The blend factor, normally from 0 to 1. |
| 值 1 | 低精度数字 | — | The value at ratio 0. |
| 值 2 | 低精度数字 | — | The value at ratio 1. |
返回
| 结果 | 低精度数字 |
备注
This is NumberRoutines.Lerp with the blend factor first. Ratio is not clamped, so values outside 0 to 1 extrapolate.
重载 4/4
插值 -> 低精度数字
最小值: 低精度数字
最大值: 低精度数字
比例: 低精度数字
函数: 文本
幂: 低精度数字float Interp(
float min,
float max,
float ratio,
string function = "linear",
float power = 1f)Maps a ratio onto the range from Min to Max in single precision: 0 gives Min, 1 gives Max, and values in between fall proportionally between them.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 最小值 | 低精度数字 | — | The value at ratio 0. |
| 最大值 | 低精度数字 | — | The value at ratio 1. |
| 比例 | 低精度数字 | — | The position between the two, normally from 0 to 1. |
| 函数 | 文本 | linear | The name of the easing curve; reserved, only "linear" behaviour exists. |
| 幂 | 低精度数字 | 1 | The exponent for a power curve; reserved and currently unused. |
返回
| 结果 | 低精度数字 |
备注
Only linear interpolation is implemented: Function and Power are currently ignored. Ratio is not clamped, so values outside 0 to 1 extrapolate.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
是否有限
函数Tells whether a number is an ordinary finite value, as opposed to NaN (not a number) or positive or negative infinity, for example to catch the result of dividing by zero before it spreads.
是否有限(值: 数字) -> 真否
bool IsFinite(double value)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字 | — | The number to test. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
焦耳转卡路里
函数Converts joules to calories by dividing by 4.184, the thermochemical calorie.
焦耳转卡路里(焦耳: 数字) -> 数字
double JoulesToCalories(double j)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 焦耳 | 数字 | — | The value in joules. |
返回
| 结果 | 数字 |
备注
This is the small calorie; the food Calorie on nutrition labels is a kilocalorie, 1,000 of these.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
焦耳转电子伏特
函数Converts joules to electronvolts by dividing by the elementary charge, 1.602176634e-19 (exact since the 2019 SI redefinition).
焦耳转电子伏特(焦耳: 数字) -> 数字
double JoulesToElectronVolts(double j)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 焦耳 | 数字 | — | The value in joules. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
焦耳转千焦
函数Converts joules to kilojoules by dividing by 1,000.
焦耳转千焦(焦耳: 数字) -> 数字
double JoulesToKilojoules(double j)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 焦耳 | 数字 | — | The value in joules. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
开尔文转摄氏度
函数Converts kelvins to degrees Celsius by subtracting 273.15.
开尔文转摄氏度(开尔文: 数字) -> 数字
double KelvinToCelsius(double k)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 开尔文 | 数字 | — | The value in kelvins. |
返回
| 结果 | 数字 |
备注
Negative kelvin values are not rejected.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千克转克
函数Converts kilograms to grams by multiplying by 1,000.
千克转克(千克: 数字) -> 数字
double KilogramsToGrams(double kg)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千克 | 数字 | — | The value in kilograms. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千克转磅
函数Converts kilograms to pounds by dividing by 0.45359237, the exact avoirdupois pound.
千克转磅(千克: 数字) -> 数字
double KilogramsToPounds(double kg)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千克 | 数字 | — | The value in kilograms. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千赫兹转赫兹
函数Converts kilohertz to hertz by multiplying by 1,000.
千赫兹转赫兹(千赫兹: 数字) -> 数字
double KilohertzToHertz(double khz)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千赫兹 | 数字 | — | The value in kilohertz. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千焦转焦耳
函数Converts kilojoules to joules by multiplying by 1,000.
千焦转焦耳(千焦: 数字) -> 数字
double KilojoulesToJoules(double kj)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千焦 | 数字 | — | The value in kilojoules. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千米转米
函数Converts kilometers to meters by multiplying by 1,000.
千米转米(千米: 数字) -> 数字
double KilometersToMeters(double km)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千米 | 数字 | — | The value in kilometers. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千米转英里
函数Converts kilometers to miles by dividing by 1.609344, the exact international (statute) mile.
千米转英里(千米: 数字) -> 数字
double KilometersToMiles(double km)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千米 | 数字 | — | The value in kilometers. |
返回
| 结果 | 数字 |
备注
Nautical miles are a different unit and are not handled here.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千帕转帕斯卡
函数Converts kilopascals to pascals by multiplying by 1,000.
千帕转帕斯卡(千帕: 数字) -> 数字
double KilopascalsToPascals(double kpa)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千帕 | 数字 | — | The value in kilopascals. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千瓦转瓦特
函数Converts kilowatts to watts by multiplying by 1,000.
千瓦转瓦特(千瓦: 数字) -> 数字
double KilowattsToWatts(double kw)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千瓦 | 数字 | — | The value in kilowatts. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
千米每小时转米每秒
函数Converts kilometers per hour to meters per second by dividing by 3.6.
千米每小时转米每秒(千米每小时: 数字) -> 数字
double KmPerHourToMetersPerSecond(double kmh)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 千米每小时 | 数字 | — | The value in kilometers per hour. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
线性插值
函数重载 1/2
线性插值(A: 数字, B: 数字, 插值参数: 数字) -> 数字
double Lerp(double a, double b, double t)
Blends linearly from A to B: a T of 0 gives A, 1 gives B, and 0.5 gives the midpoint.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 数字 | — | The value at T = 0. |
| B | 数字 | — | The value at T = 1. |
| 插值参数 | 数字 | — | The blend factor, normally from 0 to 1. |
返回
| 结果 | 数字 |
备注
T is not clamped, so values outside 0 to 1 extrapolate beyond the two ends; use NumberRoutines.Clamp01 on it first to stay between them.
重载 2/2
线性插值 -> 低精度数字
A: 低精度数字
B: 低精度数字
插值参数: 低精度数字float Lerp(float a, float b, float t)
Blends linearly from A to B in single precision: a T of 0 gives A, 1 gives B, and 0.5 gives the midpoint.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 低精度数字 | — | The value at T = 0. |
| B | 低精度数字 | — | The value at T = 1. |
| 插值参数 | 低精度数字 | — | The blend factor, normally from 0 to 1. |
返回
| 结果 | 低精度数字 |
备注
T is not clamped, so values outside 0 to 1 extrapolate beyond the two ends.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
线性插值(0 到 1 之间)
函数Blends between two byte values, such as two color channels, by a factor from 0 to 1: 0 gives A, 1 gives B.
线性插值(0 到 1 之间) -> 字节
A: 字节
B: 字节
插值参数: 低精度数字byte Lerp01(byte a, byte b, float t)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 字节 | — | The value at T = 0. |
| B | 字节 | — | The value at T = 1. |
| 插值参数 | 低精度数字 | — | The blend factor; it is clamped to 0 to 1, so the result never leaves the range between the two bytes. |
返回
| 结果 | 字节 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
升转立方米
函数Converts liters to cubic meters by dividing by 1,000.
升转立方米(升: 数字) -> 数字
double LitersToCubicMeters(double l)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 升 | 数字 | — | The value in liters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
升转加仑
函数Converts liters to gallons by dividing by 3.785411784, the exact US liquid gallon.
升转加仑(升: 数字) -> 数字
double LitersToGallons(double l)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 升 | 数字 | — | The value in liters. |
返回
| 结果 | 数字 |
备注
The imperial (UK) gallon, about 4.546 liters, is a different unit and is not handled here.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
升转毫升
函数Converts liters to milliliters by multiplying by 1,000.
升转毫升(升: 数字) -> 数字
double LitersToMilliliters(double l)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 升 | 数字 | — | The value in liters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
自然对数
函数重载 1/2
自然对数(数字: 数字) -> 数字
double Log(double number)
返回指定数字的自然对数(以e为底)。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
重载 2/2
对数(真数: 数字, 底数: 数字) -> 数字
double Log(double antilogarithm, double base)
Returns the logarithm of a specified number in a specified base.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 真数 | 数字 | — | |
| 底数 | 数字 | — |
返回
| 对数值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
常用对数
函数返回指定数字的以10为底的对数。
常用对数(数字: 数字) -> 数字
double Log10(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
以 2 为底的对数
函数返回指定数字的以2为底的对数。
以 2 为底的对数(数字: 数字) -> 数字
double Log2(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
最大值
函数重载 1/2
最大值(A: 数字, B: 数字) -> 数字
double Max(double a, double b)
Returns the larger of two double-precision floating-point numbers.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 数字 | — | |
| B | 数字 | — |
返回
| 返回较大的双精度浮点数 | 数字 |
重载 2/2
最大值(X: 整数, Y: 整数) -> 整数
int Max(int x, int y)
Gives the larger of two whole numbers.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 整数 | — | The first number. |
| Y | 整数 | — | The second number. |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
绝对值较大者
函数返回两个双精度浮点数的较大幅度。
绝对值较大者(A: 数字, B: 数字) -> 数字
double MaxMagnitude(double a, double b)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 数字 | — | |
| B | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米每秒转千米每小时
函数Converts meters per second to kilometers per hour by multiplying by 3.6.
米每秒转千米每小时(米每秒: 数字) -> 数字
double MetersPerSecondToKmPerHour(double mps)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 米每秒 | 数字 | — | The value in meters per second. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米每秒转英里每小时
函数Converts meters per second to miles per hour by dividing by 0.44704.
米每秒转英里每小时(米每秒: 数字) -> 数字
double MetersPerSecondToMilesPerHour(double mps)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 米每秒 | 数字 | — | The value in meters per second. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米转厘米
函数Converts meters to centimeters by multiplying by 100.
米转厘米(矩阵: 数字) -> 数字
double MetersToCentimeters(double m)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 矩阵 | 数字 | — | The value in meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米转英尺
函数Converts meters to feet by dividing by 0.3048, the exact international foot.
米转英尺(矩阵: 数字) -> 数字
double MetersToFeet(double m)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 矩阵 | 数字 | — | The value in meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米转英寸
函数Converts meters to inches by dividing by 0.0254, the exact international inch.
米转英寸(矩阵: 数字) -> 数字
double MetersToInches(double m)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 矩阵 | 数字 | — | The value in meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米转千米
函数Converts meters to kilometers by dividing by 1,000.
米转千米(矩阵: 数字) -> 数字
double MetersToKilometers(double m)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 矩阵 | 数字 | — | The value in meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
米转毫米
函数Converts meters to millimeters by multiplying by 1,000.
米转毫米(矩阵: 数字) -> 数字
double MetersToMillimeters(double m)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 矩阵 | 数字 | — | The value in meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
英里每小时转米每秒
函数Converts miles per hour to meters per second by multiplying by 0.44704.
英里每小时转米每秒(英里每小时: 数字) -> 数字
double MilesPerHourToMetersPerSecond(double mph)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 英里每小时 | 数字 | — | The value in miles per hour. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
英里转千米
函数Converts miles to kilometers by multiplying by 1.609344, the exact international (statute) mile.
英里转千米(英里: 数字) -> 数字
double MilesToKilometers(double miles)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 英里 | 数字 | — | The value in miles. |
返回
| 结果 | 数字 |
备注
Nautical miles are a different unit and are not handled here.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
毫升转升
函数Converts milliliters to liters by dividing by 1,000.
毫升转升(毫升: 数字) -> 数字
double MillilitersToLiters(double ml)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 毫升 | 数字 | — | The value in milliliters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
毫米转米
函数Converts millimeters to meters by dividing by 1,000.
毫米转米(毫米: 数字) -> 数字
double MillimetersToMeters(double mm)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 毫米 | 数字 | — | The value in millimeters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
最小值
函数重载 1/3
最小值(A: 数字, B: 数字) -> 数字
double Min(double a, double b)
返回两个双精度浮点数中较小的一个。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 数字 | — | |
| B | 数字 | — |
返回
| 结果 | 数字 |
重载 2/3
最小值(X: 整数, Y: 整数) -> 整数
int Min(int x, int y)
Gives the smaller of two whole numbers.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 整数 | — | The first number. |
| Y | 整数 | — | The second number. |
返回
| 结果 | 整数 |
重载 3/3
最小值 -> 低精度数字
A: 低精度数字
B: 低精度数字
C: 低精度数字
D: 低精度数字float Min(float a, float b, float c, float d)
Min from 4 numbers.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 低精度数字 | — | |
| B | 低精度数字 | — | |
| C | 低精度数字 | — | |
| D | 低精度数字 | — |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
绝对值较小者
函数返回两个双精度浮点数的较小绝对值。
绝对值较小者(A: 数字, B: 数字) -> 数字
double MinMagnitude(double a, double b)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 数字 | — | |
| B | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
分钟转秒
函数Converts minutes to seconds by multiplying by 60.
分钟转秒(矩阵: 数字) -> 数字
double MinutesToSeconds(double m)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 矩阵 | 数字 | — | The value in minutes. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
取模
函数Mod and wrap around to be always positive.
Computes a modulo that handles negative numbers correctly.
取模(值: 整数, 模数: 整数) -> 整数
int Mod(int value, int modulo)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 整数 | — | |
| 模数 | 整数 | — |
返回
| 结果 | 整数 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
取模
函数返回一个数字被另一个数字除后的余数。
取模(被除数: 数字, 除数: 数字) -> 数字
double Modulus(double dividend, double divisor)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 被除数 | 数字 | — | 要被除的数字。 |
| 除数 | 数字 | — | 用来除的数字。 |
返回
| 余数 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
乘法
函数计算两个数字并返回它们的乘积。
乘法(第一个乘数: 数字, 第二个乘数: 数字) -> 数字
double Multiply(double factor1, double factor2)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个乘数 | 数字 | — | 要乘的第一个数字。 |
| 第二个乘数 | 数字 | — | 要乘的第二个数字。 |
返回
| 乘积 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
近似相等
函数Tells whether two numbers are equal apart from a tiny rounding error, which is the right test for results of floating-point arithmetic where exact equality usually fails (0.1 + 0.2 is not exactly 0.3).
近似相等(A: 数字, B: 数字) -> 真否
bool NearlyEqual(double a, double b)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| A | 数字 | — | The first number. |
| B | 数字 | — | The second number. |
返回
| 结果 | 真否 |
备注
The tolerance is a fixed absolute difference of 1e-12, so it suits numbers of everyday size; for very large magnitudes it is effectively exact equality. NaN is never nearly equal to anything, and neither are two equal infinities.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
取相反数
函数Flips the sign of a number, turning positive into negative and negative into positive.
取相反数(值: 数字) -> 数字
double Negate(double value)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字 | — | The number to negate. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
牛顿转磅力
函数Converts newtons to pounds-force by dividing by 4.4482216152605, the exact pound-force.
牛顿转磅力(牛顿: 数字) -> 数字
double NewtonsToPoundForce(double n)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 牛顿 | 数字 | — | The value in newtons. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
不等于
函数Determines whether the first double is not equal to the second double.
不等于(第一个: 数字, 第二个: 数字) -> 真否
bool NotEqual(double first, double second)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | 数字 | — | The first double to compare. |
| 第二个 | 数字 | — | The second double to compare. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
帕斯卡转标准大气压
函数Converts pascals to standard atmospheres by dividing by 101,325, the exact standard atmosphere.
帕斯卡转标准大气压(帕斯卡: 数字) -> 数字
double PascalsToAtm(double pa)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 帕斯卡 | 数字 | — | The value in pascals. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
帕斯卡转巴
函数Converts pascals to bar by dividing by 100,000.
帕斯卡转巴(帕斯卡: 数字) -> 数字
double PascalsToBar(double pa)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 帕斯卡 | 数字 | — | The value in pascals. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
帕斯卡转千帕
函数Converts pascals to kilopascals by dividing by 1,000.
帕斯卡转千帕(帕斯卡: 数字) -> 数字
double PascalsToKilopascals(double pa)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 帕斯卡 | 数字 | — | The value in pascals. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
磅力转牛顿
函数Converts pounds-force to newtons by multiplying by 4.4482216152605, the exact pound-force.
磅力转牛顿(磅力: 数字) -> 数字
double PoundForceToNewtons(double lbf)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 磅力 | 数字 | — | The value in pounds-force. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
磅转千克
函数Converts pounds to kilograms by multiplying by 0.45359237, the exact avoirdupois pound.
磅转千克(磅: 数字) -> 数字
double PoundsToKilograms(double lb)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 磅 | 数字 | — | The value in pounds. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
幂运算
函数返回指定数字的指定幂。
幂运算(基础数字: 数字, 指数: 数字) -> 数字
double Power(double base, double exponent)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 基础数字 | 数字 | — | The base number. |
| 指数 | 数字 | — | The exponent to raise the base to. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
弧度转角度
函数Converts radians to degrees by multiplying by 180/π.
弧度转角度(弧度: 数字) -> 数字
double RadiansToDegrees(double radians)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 弧度 | 数字 | — | The value in radians. |
返回
| 结果 | 数字 |
备注
Use it to show the result of a trigonometry node, which works in radians, in degrees; no wrapping into one turn is done.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
二维伪随机数
函数Random number generator taking two seeds; rand2(p,q) = rand2(q,p) is important
二维伪随机数(点: 数字, Q: 数字) -> 数字
double Rand2(double p, double q)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 点 | 数字 | — | |
| Q | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
倒数估计
函数返回指定数字的倒数估计值。
倒数估计(D: 数字) -> 数字
double ReciprocalEstimate(double d)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| D | 数字 | — |
返回
| 倒数估计值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平方根倒数估算
函数返回指定数字的倒数平方根估算值。
平方根倒数估算(D: 数字) -> 数字
double ReciprocalSqrtEstimate(double d)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| D | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
在 0 到 1 之间循环
函数Repeats a number over the range 0 (inclusive) to 1 (exclusive), so 1.25 gives 0.25 and -0.25 gives 0.75; this gives the same result as NumberRoutines.Wrap01.
在 0 到 1 之间循环(X: 低精度数字) -> 低精度数字
float Repeat01(float x)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 低精度数字 | — | The number to repeat. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
开方
函数返回给定数字的指定根。
开方(被开方数: 数字, 根的度数: 数字) -> 数字
double Root(double radicand, double degree)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 被开方数 | 数字 | — | 计算其根的数字。 |
| 根的度数 | 数字 | — | 根的度数。 |
返回
| 计算出的根 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
舍入
函数重载 1/4
舍入(数字: 数字) -> 数字
double Round(double number)
将双精度浮点值舍入到最接近的整数值,并将中点值舍入到最接近的偶数。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
重载 2/4
四舍五入(数字: 数字, 位数: 整数) -> 数字
double Round(double number, int digits)
Rounds a double-precision floating-point value to a specified number of fractional digits, and rounds midpoint values to the nearest even number.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — | |
| 位数 | 整数 | — |
返回
| 返回值 | 数字 |
重载 3/4
舍入(数字: 数字, 位数: 整数, 方式: MidpointRounding) -> 数字
double Round(double number, int digits, MidpointRounding mode)
将双精度浮点值舍入到指定的小数位数,使用指定的舍入方式。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — | |
| 位数 | 整数 | — | |
| 方式 | MidpointRounding | — |
返回
| 结果 | 数字 |
重载 4/4
四舍五入(数字: 数字, 方式: MidpointRounding) -> 数字
double Round(double number, MidpointRounding mode)
将双精度浮点值舍入为整数,使用指定的舍入规则。
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — | |
| 方式 | MidpointRounding | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
乘以 2 的幂
函数返回 x * 2^n 的高效计算。
乘以 2 的幂(数字: 数字, 牛顿: 整数) -> 数字
double ScaleB(double number, int n)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — | |
| 牛顿 | 整数 | — |
返回
| 返回值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
秒转小时
函数Converts seconds to hours by dividing by 3,600.
秒转小时(文本: 数字) -> 数字
double SecondsToHours(double s)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 文本 | 数字 | — | The value in seconds. |
返回
| 结果 | 数字 |
备注
The result is fractional, so 5,400 seconds gives 1.5 hours.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
秒转分钟
函数Converts seconds to minutes by dividing by 60.
秒转分钟(文本: 数字) -> 数字
double SecondsToMinutes(double s)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 文本 | 数字 | — | The value in seconds. |
返回
| 结果 | 数字 |
备注
The result is fractional, so 90 seconds gives 1.5 minutes.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
符号
函数返回一个整数,指示双精度浮点数的符号。
符号(数字: 数字) -> 数字
double Sign(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
正弦
函数返回指定角度的正弦值。
正弦(角度(弧度): 数字) -> 数字
double Sin(double angleRadians)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 角度(弧度) | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
正弦余弦
函数返回指定角度的正弦和余弦。
正弦余弦(角度: 数字) -> (数字, 数字)
(double, double) SinCos(double angle)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 角度 | 数字 | — |
返回
| 结果 | (数字, 数字) |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
正弦(角度制)
函数返回指定角度的正弦值。
正弦(角度制)(角度(度): 数字) -> 数字
double SinDegrees(double angleDegrees)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 角度(度) | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
双曲正弦
函数返回指定角度的双曲正弦。
双曲正弦(角度: 数字) -> 数字
double Sinh(double angle)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 角度 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
小于
函数Determines whether the first double is less than the second double.
小于(第一个: 数字, 第二个: 数字) -> 真否
bool SmallerThan(double first, double second)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | 数字 | — | The first double to compare. |
| 第二个 | 数字 | — | The second double to compare. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
小于或等于
函数Determines whether the first double is less than or equal to the second double.
小于或等于(第一个: 数字, 第二个: 数字) -> 真否
bool SmallerThanOrEqual(double first, double second)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 第一个 | 数字 | — | The first double to compare. |
| 第二个 | 数字 | — | The second double to compare. |
返回
| 结果 | 真否 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
更平滑的阶跃
函数Eases a value between 0 and 1 along Ken Perlin's smootherstep curve (6t⁵ − 15t⁴ + 10t³), which is flatter at both ends than smoothstep because its curvature is also zero there; preferred for noise and for motion that should not visibly jerk at the start or end.
更平滑的阶跃(插值参数: 数字) -> 数字
double SmootherStep(double t)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 插值参数 | 数字 | — | The input; it is clamped to 0 to 1 first. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平滑阶跃
函数重载 1/3
平滑阶跃(下边缘: 数字, 上边缘: 数字, 值: 数字) -> 数字
double SmoothStep(double edge0, double edge1, double value)
Gives 0 below Edge0, 1 above Edge1, and an S-shaped smooth transition in between, as the smoothstep function of shading languages does; use it to fade something in over a range of values.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 下边缘 | 数字 | — | The value at which the output starts to rise from 0. |
| 上边缘 | 数字 | — | The value at which the output reaches 1. |
| 值 | 数字 | — | The value to test. |
返回
| 结果 | 数字 |
备注
When the two edges are equal the transition becomes a hard step: 1 when Value is at or above the edge, otherwise 0. Swapping the edges so that Edge0 is the larger reverses the curve, going from 1 down to 0.
重载 2/3
平滑阶跃(插值参数: 数字) -> 数字
double SmoothStep(double t)
Applies the S-shaped smoothstep curve 3t² − 2t³ to a value that is already between 0 and 1, starting and ending flat.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 插值参数 | 数字 | — | The input, expected from 0 to 1. |
返回
| 结果 | 数字 |
备注
Unlike NumberRoutines.SmoothStep01, the input is not clamped; outside 0 to 1 the curve keeps going and overshoots, so clamp first if the input may stray.
重载 3/3
平滑阶跃 -> 低精度数字
下边缘: 低精度数字
上边缘: 低精度数字
X: 低精度数字float SmoothStep(float edge0, float edge1, float x)
Gives 0 below Edge0, 1 above Edge1, and an S-shaped smooth transition in between, as the smoothstep function of shading languages does, in single precision.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 下边缘 | 低精度数字 | — | The value at which the output starts to rise from 0. |
| 上边缘 | 低精度数字 | — | The value at which the output reaches 1. |
| X | 低精度数字 | — | The value to test. |
返回
| 结果 | 低精度数字 |
备注
Equal edges are not guarded: the output is then 0 below the edge, 1 above it, and NaN exactly at it. NumberRoutines.SmoothStepRange turns that case into a clean hard step.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平滑阶跃(0 到 1)
函数重载 1/2
平滑阶跃(0 到 1)(X: 数字) -> 数字
double SmoothStep01(double x)
Eases a value between 0 and 1 along an S-shaped curve that starts and ends flat (3x² − 2x³), for smooth fades and transitions without the abrupt start and stop of a straight line.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 数字 | — | The input; it is clamped to 0 to 1 first. |
返回
| 结果 | 数字 |
重载 2/2
平滑阶跃(0 到 1)(X: 低精度数字) -> 低精度数字
float SmoothStep01(float x)
Standard cubic smooth step.
Maps 0 → 0 and 1 → 1, with zero slope at both ends.
f(x) = x * x * (3 - 2 * x)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| X | 低精度数字 | — |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
区间平滑阶跃
函数此节点没有文档说明。
区间平滑阶跃 -> 低精度数字
下边缘: 低精度数字
上边缘: 低精度数字
X: 低精度数字float SmoothStepRange(float edge0, float edge1, float x)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 下边缘 | 低精度数字 | — | |
| 上边缘 | 低精度数字 | — | |
| X | 低精度数字 | — |
返回
| 结果 | 低精度数字 |
备注
Matches the common GLSL/HLSL-style API.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平方千米转平方米
函数Converts square kilometers to square meters by multiplying by 1,000,000.
平方千米转平方米(平方千米: 数字) -> 数字
double SquareKilometersToSquareMeters(double km2)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 平方千米 | 数字 | — | The value in square kilometers. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平方米转英亩
函数Converts square meters to acres by dividing by 4,046.8564224, the international acre.
平方米转英亩(平方米: 数字) -> 数字
double SquareMetersToAcres(double m2)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 平方米 | 数字 | — | The value in square meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平方米转平方千米
函数Converts square meters to square kilometers by dividing by 1,000,000.
平方米转平方千米(平方米: 数字) -> 数字
double SquareMetersToSquareKilometers(double m2)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 平方米 | 数字 | — | The value in square meters. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
平方根
函数返回指定数字的平方根。
平方根(数字: 数字) -> 数字
double SquareRoot(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
减法
函数从第一个数字中减去第二个数字并返回结果。
减法(被减数: 数字, 减数: 数字) -> 数字
double Subtract(double minuend, double subtrahend)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 被减数 | 数字 | — | 要减去的数字。 |
| 减数 | 数字 | — | 要被减去的数字。 |
返回
| 差值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
正切
函数返回指定角度的正切值。
正切(数字: 数字) -> 数字
double Tan(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
双曲正切
函数Returns the hyperbolic tangent of the specified angle.
双曲正切(数字: 数字) -> 数字
double Tanh(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 返回指定角度的双曲正切值 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
0 到 1 转为字节
函数重载 1/2
0 到 1 转为字节(值: 数字) -> 字节
byte ToByte01(double value)
Converts a normalized value from 0 to 1, such as a color channel, to a byte from 0 to 255, clamping values outside the range first.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 数字 | — | The normalized value, expected from 0 to 1. |
返回
| 结果 | 字节 |
备注
The scaled value is rounded to the nearest whole number with ties going to the even neighbour. A NaN input is not caught by the clamp, so its result should not be relied on.
重载 2/2
0 到 1 转为字节(值: 低精度数字) -> 字节
byte ToByte01(float value)
Convert and clamp normalized float values.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 低精度数字 | — | [0-1] Range |
返回
| 结果 | 字节 |
备注
Not the same as NumberRoutines.ClampToByteSize!
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
转为角度
函数Converts an angle from radians to degrees (multiplying by 180/π) in single precision.
转为角度(弧度: 低精度数字) -> 低精度数字
float ToDegrees(float radians)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 弧度 | 低精度数字 | — | The angle in radians; no wrapping into one turn is done. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
转为弧度
函数Converts an angle from degrees to radians (multiplying by π/180) in single precision, for passing degree angles to trigonometry that works in radians.
转为弧度(角度: 低精度数字) -> 低精度数字
float ToRadians(float degrees)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 角度 | 低精度数字 | — | The angle in degrees; no wrapping into one turn is done. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
截断
函数计算指定双精度浮点数的整数部分。
截断(数字: 数字) -> 数字
double Truncate(double number)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 数字 | 数字 | — |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
瓦特转马力
函数Converts watts to horsepower by dividing by 745.699872, the mechanical (imperial) horsepower.
瓦特转马力(瓦特: 数字) -> 数字
double WattsToHorsepower(double w)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 瓦特 | 数字 | — | The value in watts. |
返回
| 结果 | 数字 |
备注
Metric horsepower (PS, about 735.5 W) is a different unit and is not handled here.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
瓦特转千瓦
函数Converts watts to kilowatts by dividing by 1,000.
瓦特转千瓦(瓦特: 数字) -> 数字
double WattsToKilowatts(double w)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 瓦特 | 数字 | — | The value in watts. |
返回
| 结果 | 数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
环绕到范围内
函数Wraps a coordinate into the range 0 (inclusive) to Size (exclusive), so a position that runs off one side of a tiling image or grid comes back in from the other.
环绕到范围内(值: 低精度数字, 大小: 整数) -> 低精度数字
float Wrap(float value, int size)
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 低精度数字 | — | The coordinate to wrap. |
| 大小 | 整数 | — | The length of the range, such as an image width in pixels. |
返回
| 结果 | 低精度数字 |
备注
The value is moved one Size at a time, so it is meant for values a few sizes out of range at most. Size must be positive and Value finite: with a size of zero or less, an infinite value, or a value so large that adding or subtracting Size no longer changes it, it never returns. NaN is returned unchanged.
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库
环绕到 0 到 1
函数重载 1/2
环绕到 0 到 1(插值参数: 数字) -> 数字
double Wrap01(double t)
Wraps a number into the range 0 (inclusive) to 1 (exclusive) by keeping only its position within a unit cycle, so 1.25 gives 0.25 and -0.25 gives 0.75; useful for repeating patterns, looping animation time and hue.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 插值参数 | 数字 | — | The number to wrap. |
返回
| 结果 | 数字 |
重载 2/2
环绕到 0 到 1(值: 低精度数字) -> 低精度数字
float Wrap01(float value)
Wraps a number into the range 0 (inclusive) to 1 (exclusive) in single precision, so 1.25 gives 0.25 and -0.25 gives 0.75; useful for tiling texture coordinates and looping time.
参数
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| 值 | 低精度数字 | — | The number to wrap. |
返回
| 结果 | 低精度数字 |
- 所属发行版
- 元编程(教育版)元编程(专业版)
- 可用的图种类
- 数据流 函数 事件 例程 蓝图 状态机状态
- 声明于
- 算术运算
- 所属包
- 标准库