Number Routines
161 nodes
On this page 161
Atomic Mass Unit
FunctionAtomic mass constant (kg)
1 unified atomic mass unit (u).
AtomicMassUnit() -> Number
double AtomicMassUnit()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Avogadro
FunctionAvogadro's number (1/mol)
Number of particles per mole.
Avogadro() -> Number
double Avogadro()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Boltzmann Constant
FunctionBoltzmann constant (J/K)
Relates temperature to energy.
BoltzmannConstant() -> Number
double BoltzmannConstant()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Coulomb Constant
FunctionCoulomb constant (N·m^2/C^2)
k_e = 1 / (4π ε₀)
CoulombConstant() -> Number
double CoulombConstant()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Euler's Number
FunctionEuler's number (e).
Base of the natural logarithm; fundamental in calculus, growth/decay processes, and complex analysis.
E() -> Number
double E()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Electron Mass
FunctionElectron mass (kg)
Rest mass of an electron.
ElectronMass() -> Number
double ElectronMass()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Elementary Charge
FunctionElementary charge (C)
Magnitude of charge of a proton/electron.
ElementaryCharge() -> Number
double ElementaryCharge()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Faraday
FunctionFaraday constant (C/mol)
Charge per mole of electrons.
Faraday() -> Number
double Faraday()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Gas Constant
FunctionUniversal gas constant (J/(mol·K))
R = N_A * k_B
GasConstant() -> Number
double GasConstant()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Gravitational Constant
FunctionGravitational constant (m^3·kg^-1·s^-2)
Fundamental constant in Newtonian gravity.
GravitationalConstant() -> Number
double GravitationalConstant()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Neutron Mass
FunctionNeutron mass (kg)
Rest mass of a neutron.
NeutronMass() -> Number
double NeutronMass()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Pi
FunctionArchimedes' constant (π).
Ratio of a circle's circumference to its diameter; ubiquitous in geometry, trigonometry, and wave mechanics.
PI() -> Number
double PI()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Planck Constant
FunctionPlanck constant (J·s)
Relates energy and frequency: E = h·ν.
PlanckConstant() -> Number
double PlanckConstant()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Proton Mass
FunctionProton mass (kg)
Rest mass of a proton.
ProtonMass() -> Number
double ProtonMass()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Reduced Planck Constant
FunctionReduced Planck constant (J·s)
ħ = h / (2π)
ReducedPlanckConstant() -> Number
double ReducedPlanckConstant()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Rydberg
FunctionRydberg constant (1/m)
Appears in atomic spectra.
Rydberg() -> Number
double Rydberg()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Speed Of Light
FunctionSpeed of light in vacuum (m/s)
Exact value defined by SI.
SpeedOfLight() -> Number
double SpeedOfLight()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Standard Atmosphere
FunctionStandard atmospheric pressure (Pa)
1 atm in SI units.
StandardAtmosphere() -> Number
double StandardAtmosphere()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Standard Gravity
FunctionStandard acceleration due to gravity on Earth (m/s^2)
Conventional standard value.
StandardGravity() -> Number
double StandardGravity()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Stefan Boltzmann
FunctionStefan–Boltzmann constant (W·m^-2·K^-4)
Used in blackbody radiation.
StefanBoltzmann() -> Number
double StefanBoltzmann()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Tau
FunctionTau (τ = 2π).
Ratio of a circle's circumference to its radius; often preferred in formulas involving full rotations.
Tau() -> Number
double Tau()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Vacuum Permeability
FunctionVacuum permeability (N/A^2)
Magnetic constant μ₀.
VacuumPermeability() -> Number
double VacuumPermeability()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Vacuum Permittivity
FunctionVacuum permittivity (F/m)
Electric constant ε₀.
VacuumPermittivity() -> Number
double VacuumPermittivity()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Wien Displacement
FunctionWien displacement constant (m·K)
Peak wavelength of blackbody radiation.
WienDisplacement() -> Number
double WienDisplacement()
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Absolute Value
FunctionReturns the absolute value of a double-precision floating-point number.
AbsoluteValue(number: Number) -> Number
double AbsoluteValue(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Acos
FunctionReturns the angle whose cosine is the specified number.
Acos(number: Number) -> Number
double Acos(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Acosh
FunctionReturns the angle whose hyperbolic cosine is the specified number.
Acosh(number: Number) -> Number
double Acosh(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Acres To Square Meters
FunctionConverts acres to square meters by multiplying by 4,046.8564224, the international acre.
AcresToSquareMeters(acres: Number) -> Number
double AcresToSquareMeters(double acres)
Parameters
| name | type | default | description |
|---|---|---|---|
| acres | Number | — | The value in acres. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Add
FunctionOverload 1 of 4
Add(summand1: Number, summand2: Number) -> Number
double Add(double summand1, double summand2)
Adds two numbers and returns the sum.
Parameters
| name | type | default | description |
|---|---|---|---|
| summand1 | Number | — | The first number to add. |
| summand2 | Number | — | The second number to add. |
Returns
| result | Number |
Overload 2 of 4
Add -> Number
summand1: Number
summand2: Number
summand3: Numberdouble Add(double summand1, double summand2, double summand3)
This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| summand1 | Number | — | |
| summand2 | Number | — | |
| summand3 | Number | — |
Returns
| result | Number |
Overload 3 of 4
Add -> Number
summand1: Number
summand2: Number
summand3: Number
summand4: Numberdouble Add(
double summand1,
double summand2,
double summand3,
double summand4)This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| summand1 | Number | — | |
| summand2 | Number | — | |
| summand3 | Number | — | |
| summand4 | Number | — |
Returns
| result | Number |
Overload 4 of 4
Add -> Number
summand1: Number
summand2: Number
summand3: Number
summand4: Number
summand5: Numberdouble Add(
double summand1,
double summand2,
double summand3,
double summand4,
double summand5)This node carries no documentation.
Parameters
| name | type | default | description |
|---|---|---|---|
| summand1 | Number | — | |
| summand2 | Number | — | |
| summand3 | Number | — | |
| summand4 | Number | — | |
| summand5 | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Asin
FunctionReturns the angle whose sine is the specified number.
Asin(number: Number) -> Number
double Asin(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Asinh
FunctionReturns the angle whose hyperbolic sine is the specified number.
Asinh(number: Number) -> Number
double Asinh(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Atan
FunctionReturns the angle whose tangent is the specified number.
Atan(number: Number) -> Number
double Atan(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Atan2
FunctionReturns the angle whose tangent is the quotient of two specified numbers.
Atan2(y: Number, x: Number) -> Number
double Atan2(double y, double x)
Parameters
| name | type | default | description |
|---|---|---|---|
| y | Number | — | |
| x | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Atanh
FunctionReturns the angle whose hyperbolic tangent is the specified number.
Atanh(number: Number) -> Number
double Atanh(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Atm To Pascals
FunctionConverts standard atmospheres to pascals by multiplying by 101,325, the exact standard atmosphere.
AtmToPascals(atm: Number) -> Number
double AtmToPascals(double atm)
Parameters
| name | type | default | description |
|---|---|---|---|
| atm | Number | — | The value in standard atmospheres. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Bar To Pascals
FunctionConverts bar to pascals by multiplying by 100,000.
BarToPascals(bar: Number) -> Number
double BarToPascals(double bar)
Parameters
| name | type | default | description |
|---|---|---|---|
| bar | Number | — | The value in bar. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Bigger Than
FunctionDetermines whether the first double is greater than the second double.
BiggerThan(first: Number, second: Number) -> Truth
bool BiggerThan(double first, double second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Number | — | The first double to compare. |
| second | Number | — | The second double to compare. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Bigger Than Or Equal
FunctionDetermines whether the first double is greater than or equal to the second double.
BiggerThanOrEqual(first: Number, second: Number) -> Truth
bool BiggerThanOrEqual(double first, double second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Number | — | The first double to compare. |
| second | Number | — | The second double to compare. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Bit Decrement
FunctionReturns the largest value that compares less than a specified value.
BitDecrement(number: Number) -> Number
double BitDecrement(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Bit Increment
FunctionReturns the smallest value that compares greater than a specified value.
BitIncrement(number: Number) -> Number
double BitIncrement(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Calories To Joules
FunctionConverts calories to joules by multiplying by 4.184, the thermochemical calorie.
CaloriesToJoules(cal: Number) -> Number
double CaloriesToJoules(double cal)
Parameters
| name | type | default | description |
|---|---|---|---|
| cal | Number | — | The value in calories. |
Returns
| result | Number |
Remarks
This is the small calorie; the food Calorie on nutrition labels is a kilocalorie, 1,000 of these.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Ceiling
FunctionReturns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.
Ceiling(number: Number) -> Number
double Ceiling(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Celsius To Fahrenheit
FunctionConverts degrees Celsius to degrees Fahrenheit by the formula °F = °C × 9/5 + 32.
CelsiusToFahrenheit(c: Number) -> Number
double CelsiusToFahrenheit(double c)
Parameters
| name | type | default | description |
|---|---|---|---|
| c | Number | — | The value in degrees Celsius. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Celsius To Kelvin
FunctionConverts degrees Celsius to kelvins by adding 273.15.
CelsiusToKelvin(c: Number) -> Number
double CelsiusToKelvin(double c)
Parameters
| name | type | default | description |
|---|---|---|---|
| c | Number | — | The value in degrees Celsius. |
Returns
| result | Number |
Remarks
Values below absolute zero (-273.15 °C) are not rejected and give a negative kelvin value.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Centimeters To Meters
FunctionConverts centimeters to meters by dividing by 100.
CentimetersToMeters(cm: Number) -> Number
double CentimetersToMeters(double cm)
Parameters
| name | type | default | description |
|---|---|---|---|
| cm | Number | — | The value in centimeters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Clamp
FunctionOverload 1 of 3
Clamp(value: Number, min: Number, max: Number) -> Number
double Clamp(double value, double min, double max)
Returns value clamped to the inclusive range of min and max.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | |
| min | Number | — | |
| max | Number | — |
Returns
| result | Number |
Overload 2 of 3
Clamp(value: Integer, min: Integer, max: Integer) -> Integer
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Integer | — | The number to clamp. |
| min | Integer | — | The smallest allowed value. |
| max | Integer | — | The largest allowed value; it should not be less than Min, which is not checked. |
Returns
| result | Integer |
Overload 3 of 3
Clamp -> Low Accuracy Number
x: Low Accuracy Number
a: Low Accuracy Number
b: Low Accuracy Numberfloat Clamp(float x, float a, float b)
Limits a number to the inclusive range from A to B in single precision.
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Low Accuracy Number | — | The number to clamp. |
| a | Low Accuracy Number | — | The smallest allowed value. |
| b | Low Accuracy Number | — | The largest allowed value; it should not be less than A, which is not checked. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Clamp01
FunctionOverload 1 of 2
Clamp01(v: Number) -> Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| v | Number | — | The number to clamp. |
Returns
| result | Number |
Overload 2 of 2
Clamp01(value: Low Accuracy Number) -> Low Accuracy Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Low Accuracy Number | — | The number to clamp. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Clamp To Byte Size
FunctionOverload 1 of 2
ClampToByteSize(value: Number) -> Byte
byte ClampToByteSize(double value)
Round and clamp by absolute value to byte value range.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — |
Returns
| result | Byte |
Overload 2 of 2
ClampToByteSize(value: Low Accuracy Number) -> Byte
byte ClampToByteSize(float value)
Clamp byte-value floats.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Low Accuracy Number | — | [0, 255] range |
Returns
| result | Byte |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Clamp To U Short Size
FunctionClamp ushort-value floats.
ClampToUShortSize(value: Low Accuracy Number) -> Small Positive Integer
ushort ClampToUShortSize(float value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Low Accuracy Number | — | [0, 65535] range |
Returns
| result | Small Positive Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Compute Pi
FunctionComputes PI to arbitrary accuracy (digits after decimal point).
ComputePi(digits: Integer) -> Text
string ComputePi(int digits)
Parameters
| name | type | default | description |
|---|---|---|---|
| digits | Integer | — |
Returns
| result | Text |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Copy Sign
FunctionReturns a value with the magnitude of x and the sign of y.
CopySign(number1: Number, number2: Number) -> Number
double CopySign(double number1, double number2)
Parameters
| name | type | default | description |
|---|---|---|---|
| number1 | Number | — | |
| number2 | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Cos
FunctionReturns the cosine of the specified angle.
Cos(number: Number) -> Number
double Cos(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Cosh
FunctionReturns the hyperbolic cosine of the specified angle.
Cosh(number: Number) -> Number
double Cosh(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Cube Root
FunctionReturns the cube root of a specified number.
CubeRoot(number: Number) -> Number
double CubeRoot(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Cubic Meters To Liters
FunctionConverts cubic meters to liters by multiplying by 1,000.
CubicMetersToLiters(m3: Number) -> Number
double CubicMetersToLiters(double m3)
Parameters
| name | type | default | description |
|---|---|---|---|
| m3 | Number | — | The value in cubic meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Degrees To Radians
FunctionConverts degrees to radians by multiplying by π/180.
DegreesToRadians(degrees: Number) -> Number
double DegreesToRadians(double degrees)
Parameters
| name | type | default | description |
|---|---|---|---|
| degrees | Number | — | The value in degrees. |
Returns
| result | Number |
Remarks
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.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Divide
FunctionDivides the first number by the second and returns the quotient.
Divide(dividend: Number, divisor: Number) -> Number
double Divide(double dividend, double divisor)
Parameters
| name | type | default | description |
|---|---|---|---|
| dividend | Number | — | The number to be divided. |
| divisor | Number | — | The number by which to divide. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Electron Volts To Joules
FunctionConverts electronvolts to joules by multiplying by the elementary charge, 1.602176634e-19 (exact since the 2019 SI redefinition).
ElectronVoltsToJoules(ev: Number) -> Number
double ElectronVoltsToJoules(double ev)
Parameters
| name | type | default | description |
|---|---|---|---|
| ev | Number | — | The value in electronvolts. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Equal To
FunctionDetermines whether the first double is equal to the second double.
EqualTo(first: Number, second: Number) -> Truth
bool EqualTo(double first, double second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Number | — | The first double to compare. |
| second | Number | — | The second double to compare. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Exp
FunctionReturns e raised to the specified power.
Exp(number: Number) -> Number
double Exp(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Fahrenheit To Celsius
FunctionConverts degrees Fahrenheit to degrees Celsius by the formula °C = (°F − 32) × 5/9.
FahrenheitToCelsius(f: Number) -> Number
double FahrenheitToCelsius(double f)
Parameters
| name | type | default | description |
|---|---|---|---|
| f | Number | — | The value in degrees Fahrenheit. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Feet To Meters
FunctionConverts feet to meters by multiplying by 0.3048, the exact international foot.
FeetToMeters(ft: Number) -> Number
double FeetToMeters(double ft)
Parameters
| name | type | default | description |
|---|---|---|---|
| ft | Number | — | The value in feet. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Floor
FunctionReturns the largest integral value less than or equal to the specified double-precision floating-point number.
Floor(number: Number) -> Number
double Floor(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Frac
FunctionGives 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).
Frac(v: Low Accuracy Number) -> Low Accuracy Number
float Frac(float v)
Parameters
| name | type | default | description |
|---|---|---|---|
| v | Low Accuracy Number | — | The number. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Fused Multiply Add
FunctionReturns (x * y) + z, rounded as one ternary operation.
FusedMultiplyAdd(x: Number, y: Number, z: Number) -> Number
double FusedMultiplyAdd(double x, double y, double z)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | |
| y | Number | — | |
| z | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Gallons To Liters
FunctionConverts gallons to liters by multiplying by 3.785411784, the exact US liquid gallon.
GallonsToLiters(gal: Number) -> Number
double GallonsToLiters(double gal)
Parameters
| name | type | default | description |
|---|---|---|---|
| gal | Number | — | The value in gallons. |
Returns
| result | Number |
Remarks
The imperial (UK) gallon, about 4.546 liters, is a different unit and is not handled here.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Grams To Kilograms
FunctionConverts grams to kilograms by dividing by 1,000.
GramsToKilograms(g: Number) -> Number
double GramsToKilograms(double g)
Parameters
| name | type | default | description |
|---|---|---|---|
| g | Number | — | The value in grams. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Hertz To Kilohertz
FunctionConverts hertz to kilohertz by dividing by 1,000.
HertzToKilohertz(hz: Number) -> Number
double HertzToKilohertz(double hz)
Parameters
| name | type | default | description |
|---|---|---|---|
| hz | Number | — | The value in hertz. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Horsepower To Watts
FunctionConverts horsepower to watts by multiplying by 745.699872, the mechanical (imperial) horsepower.
HorsepowerToWatts(hp: Number) -> Number
double HorsepowerToWatts(double hp)
Parameters
| name | type | default | description |
|---|---|---|---|
| hp | Number | — | The value in horsepower. |
Returns
| result | Number |
Remarks
Metric horsepower (PS, about 735.5 W) is a different unit and is not handled here.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Hours To Seconds
FunctionConverts hours to seconds by multiplying by 3,600.
HoursToSeconds(h: Number) -> Number
double HoursToSeconds(double h)
Parameters
| name | type | default | description |
|---|---|---|---|
| h | Number | — | The value in hours. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
IEEE Remainder
FunctionReturns the remainder resulting from the division of a specified number by another specified number.
IEEERemainder(x: Number, y: Number) -> Number
double IEEERemainder(double x, double y)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | |
| y | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
I Log B
FunctionReturns the base 2 integer logarithm of a specified number.
ILogB(number: Number) -> Number
double ILogB(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Inches To Meters
FunctionConverts inches to meters by multiplying by 0.0254, the exact international inch.
InchesToMeters(inches: Number) -> Number
double InchesToMeters(double inches)
Parameters
| name | type | default | description |
|---|---|---|---|
| inches | Number | — | The value in inches. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Interp
FunctionOverload 1 of 4
Interp(ratio: Number, v1: Number, v2: Number) -> Number
double Interp(double ratio, double v1, double v2)
Linear interpolation.
Parameters
| name | type | default | description |
|---|---|---|---|
| ratio | Number | — | |
| v1 | Number | — | |
| v2 | Number | — |
Returns
| result | Number |
Overload 2 of 4
Interp -> Number
min: Number
max: Number
ratio: Number
function: Text
power: Numberdouble 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| min | Number | — | The value at ratio 0. |
| max | Number | — | The value at ratio 1. |
| ratio | Number | — | The position between the two, normally from 0 to 1. |
| function | Text | linear | The name of the easing curve; reserved, only "linear" behaviour exists. |
| power | Number | 1 | The exponent for a power curve; reserved and currently unused. |
Returns
| result | Number |
Remarks
Only linear interpolation is implemented: Function and Power are currently ignored. Ratio is not clamped, so values outside 0 to 1 extrapolate.
Overload 3 of 4
Interp -> Low Accuracy Number
ratio: Low Accuracy Number
v1: Low Accuracy Number
v2: Low Accuracy Numberfloat 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| ratio | Low Accuracy Number | — | The blend factor, normally from 0 to 1. |
| v1 | Low Accuracy Number | — | The value at ratio 0. |
| v2 | Low Accuracy Number | — | The value at ratio 1. |
Returns
| result | Low Accuracy Number |
Remarks
This is NumberRoutines.Lerp with the blend factor first. Ratio is not clamped, so values outside 0 to 1 extrapolate.
Overload 4 of 4
Interp -> Low Accuracy Number
min: Low Accuracy Number
max: Low Accuracy Number
ratio: Low Accuracy Number
function: Text
power: Low Accuracy Numberfloat 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| min | Low Accuracy Number | — | The value at ratio 0. |
| max | Low Accuracy Number | — | The value at ratio 1. |
| ratio | Low Accuracy Number | — | The position between the two, normally from 0 to 1. |
| function | Text | linear | The name of the easing curve; reserved, only "linear" behaviour exists. |
| power | Low Accuracy Number | 1 | The exponent for a power curve; reserved and currently unused. |
Returns
| result | Low Accuracy Number |
Remarks
Only linear interpolation is implemented: Function and Power are currently ignored. Ratio is not clamped, so values outside 0 to 1 extrapolate.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Is Finite
FunctionTells 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.
IsFinite(value: Number) -> Truth
bool IsFinite(double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | The number to test. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Joules To Calories
FunctionConverts joules to calories by dividing by 4.184, the thermochemical calorie.
JoulesToCalories(j: Number) -> Number
double JoulesToCalories(double j)
Parameters
| name | type | default | description |
|---|---|---|---|
| j | Number | — | The value in joules. |
Returns
| result | Number |
Remarks
This is the small calorie; the food Calorie on nutrition labels is a kilocalorie, 1,000 of these.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Joules To Electron Volts
FunctionConverts joules to electronvolts by dividing by the elementary charge, 1.602176634e-19 (exact since the 2019 SI redefinition).
JoulesToElectronVolts(j: Number) -> Number
double JoulesToElectronVolts(double j)
Parameters
| name | type | default | description |
|---|---|---|---|
| j | Number | — | The value in joules. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Joules To Kilojoules
FunctionConverts joules to kilojoules by dividing by 1,000.
JoulesToKilojoules(j: Number) -> Number
double JoulesToKilojoules(double j)
Parameters
| name | type | default | description |
|---|---|---|---|
| j | Number | — | The value in joules. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kelvin To Celsius
FunctionConverts kelvins to degrees Celsius by subtracting 273.15.
KelvinToCelsius(k: Number) -> Number
double KelvinToCelsius(double k)
Parameters
| name | type | default | description |
|---|---|---|---|
| k | Number | — | The value in kelvins. |
Returns
| result | Number |
Remarks
Negative kelvin values are not rejected.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilograms To Grams
FunctionConverts kilograms to grams by multiplying by 1,000.
KilogramsToGrams(kg: Number) -> Number
double KilogramsToGrams(double kg)
Parameters
| name | type | default | description |
|---|---|---|---|
| kg | Number | — | The value in kilograms. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilograms To Pounds
FunctionConverts kilograms to pounds by dividing by 0.45359237, the exact avoirdupois pound.
KilogramsToPounds(kg: Number) -> Number
double KilogramsToPounds(double kg)
Parameters
| name | type | default | description |
|---|---|---|---|
| kg | Number | — | The value in kilograms. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilohertz To Hertz
FunctionConverts kilohertz to hertz by multiplying by 1,000.
KilohertzToHertz(khz: Number) -> Number
double KilohertzToHertz(double khz)
Parameters
| name | type | default | description |
|---|---|---|---|
| khz | Number | — | The value in kilohertz. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilojoules To Joules
FunctionConverts kilojoules to joules by multiplying by 1,000.
KilojoulesToJoules(kj: Number) -> Number
double KilojoulesToJoules(double kj)
Parameters
| name | type | default | description |
|---|---|---|---|
| kj | Number | — | The value in kilojoules. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilometers To Meters
FunctionConverts kilometers to meters by multiplying by 1,000.
KilometersToMeters(km: Number) -> Number
double KilometersToMeters(double km)
Parameters
| name | type | default | description |
|---|---|---|---|
| km | Number | — | The value in kilometers. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilometers To Miles
FunctionConverts kilometers to miles by dividing by 1.609344, the exact international (statute) mile.
KilometersToMiles(km: Number) -> Number
double KilometersToMiles(double km)
Parameters
| name | type | default | description |
|---|---|---|---|
| km | Number | — | The value in kilometers. |
Returns
| result | Number |
Remarks
Nautical miles are a different unit and are not handled here.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilopascals To Pascals
FunctionConverts kilopascals to pascals by multiplying by 1,000.
KilopascalsToPascals(kpa: Number) -> Number
double KilopascalsToPascals(double kpa)
Parameters
| name | type | default | description |
|---|---|---|---|
| kpa | Number | — | The value in kilopascals. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Kilowatts To Watts
FunctionConverts kilowatts to watts by multiplying by 1,000.
KilowattsToWatts(kw: Number) -> Number
double KilowattsToWatts(double kw)
Parameters
| name | type | default | description |
|---|---|---|---|
| kw | Number | — | The value in kilowatts. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Km Per Hour To Meters Per Second
FunctionConverts kilometers per hour to meters per second by dividing by 3.6.
KmPerHourToMetersPerSecond(kmh: Number) -> Number
double KmPerHourToMetersPerSecond(double kmh)
Parameters
| name | type | default | description |
|---|---|---|---|
| kmh | Number | — | The value in kilometers per hour. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Lerp
FunctionOverload 1 of 2
Lerp(a: Number, b: Number, t: Number) -> Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | The value at T = 0. |
| b | Number | — | The value at T = 1. |
| t | Number | — | The blend factor, normally from 0 to 1. |
Returns
| result | Number |
Remarks
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.
Overload 2 of 2
Lerp -> Low Accuracy Number
a: Low Accuracy Number
b: Low Accuracy Number
t: Low Accuracy Numberfloat 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Low Accuracy Number | — | The value at T = 0. |
| b | Low Accuracy Number | — | The value at T = 1. |
| t | Low Accuracy Number | — | The blend factor, normally from 0 to 1. |
Returns
| result | Low Accuracy Number |
Remarks
T is not clamped, so values outside 0 to 1 extrapolate beyond the two ends.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Lerp01
FunctionBlends between two byte values, such as two color channels, by a factor from 0 to 1: 0 gives A, 1 gives B.
Lerp01(a: Byte, b: Byte, t: Low Accuracy Number) -> Byte
byte Lerp01(byte a, byte b, float t)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Byte | — | The value at T = 0. |
| b | Byte | — | The value at T = 1. |
| t | Low Accuracy Number | — | The blend factor; it is clamped to 0 to 1, so the result never leaves the range between the two bytes. |
Returns
| result | Byte |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Liters To Cubic Meters
FunctionConverts liters to cubic meters by dividing by 1,000.
LitersToCubicMeters(l: Number) -> Number
double LitersToCubicMeters(double l)
Parameters
| name | type | default | description |
|---|---|---|---|
| l | Number | — | The value in liters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Liters To Gallons
FunctionConverts liters to gallons by dividing by 3.785411784, the exact US liquid gallon.
LitersToGallons(l: Number) -> Number
double LitersToGallons(double l)
Parameters
| name | type | default | description |
|---|---|---|---|
| l | Number | — | The value in liters. |
Returns
| result | Number |
Remarks
The imperial (UK) gallon, about 4.546 liters, is a different unit and is not handled here.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Liters To Milliliters
FunctionConverts liters to milliliters by multiplying by 1,000.
LitersToMilliliters(l: Number) -> Number
double LitersToMilliliters(double l)
Parameters
| name | type | default | description |
|---|---|---|---|
| l | Number | — | The value in liters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Log
FunctionOverload 1 of 2
Log(number: Number) -> Number
double Log(double number)
Returns the natural (base e) logarithm of a specified number.
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
Overload 2 of 2
Log(antilogarithm: Number, base: Number) -> Number
double Log(double antilogarithm, double base)
Returns the logarithm of a specified number in a specified base.
Parameters
| name | type | default | description |
|---|---|---|---|
| antilogarithm | Number | — | |
| base | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Log10
FunctionReturns the base 10 logarithm of a specified number.
Log10(number: Number) -> Number
double Log10(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Log2
FunctionReturns the base 2 logarithm of a specified number.
Log2(number: Number) -> Number
double Log2(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Max
FunctionOverload 1 of 2
Max(a: Number, b: Number) -> Number
double Max(double a, double b)
Returns the larger of two double-precision floating-point numbers.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | |
| b | Number | — |
Returns
| result | Number |
Overload 2 of 2
Max(x: Integer, y: Integer) -> Integer
int Max(int x, int y)
Gives the larger of two whole numbers.
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Integer | — | The first number. |
| y | Integer | — | The second number. |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Max Magnitude
FunctionReturns the larger magnitude of two double-precision floating-point numbers.
MaxMagnitude(a: Number, b: Number) -> Number
double MaxMagnitude(double a, double b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | |
| b | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters Per Second To Km Per Hour
FunctionConverts meters per second to kilometers per hour by multiplying by 3.6.
MetersPerSecondToKmPerHour(mps: Number) -> Number
double MetersPerSecondToKmPerHour(double mps)
Parameters
| name | type | default | description |
|---|---|---|---|
| mps | Number | — | The value in meters per second. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters Per Second To Miles Per Hour
FunctionConverts meters per second to miles per hour by dividing by 0.44704.
MetersPerSecondToMilesPerHour(mps: Number) -> Number
double MetersPerSecondToMilesPerHour(double mps)
Parameters
| name | type | default | description |
|---|---|---|---|
| mps | Number | — | The value in meters per second. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters To Centimeters
FunctionConverts meters to centimeters by multiplying by 100.
MetersToCentimeters(m: Number) -> Number
double MetersToCentimeters(double m)
Parameters
| name | type | default | description |
|---|---|---|---|
| m | Number | — | The value in meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters To Feet
FunctionConverts meters to feet by dividing by 0.3048, the exact international foot.
MetersToFeet(m: Number) -> Number
double MetersToFeet(double m)
Parameters
| name | type | default | description |
|---|---|---|---|
| m | Number | — | The value in meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters To Inches
FunctionConverts meters to inches by dividing by 0.0254, the exact international inch.
MetersToInches(m: Number) -> Number
double MetersToInches(double m)
Parameters
| name | type | default | description |
|---|---|---|---|
| m | Number | — | The value in meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters To Kilometers
FunctionConverts meters to kilometers by dividing by 1,000.
MetersToKilometers(m: Number) -> Number
double MetersToKilometers(double m)
Parameters
| name | type | default | description |
|---|---|---|---|
| m | Number | — | The value in meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Meters To Millimeters
FunctionConverts meters to millimeters by multiplying by 1,000.
MetersToMillimeters(m: Number) -> Number
double MetersToMillimeters(double m)
Parameters
| name | type | default | description |
|---|---|---|---|
| m | Number | — | The value in meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Miles Per Hour To Meters Per Second
FunctionConverts miles per hour to meters per second by multiplying by 0.44704.
MilesPerHourToMetersPerSecond(mph: Number) -> Number
double MilesPerHourToMetersPerSecond(double mph)
Parameters
| name | type | default | description |
|---|---|---|---|
| mph | Number | — | The value in miles per hour. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Miles To Kilometers
FunctionConverts miles to kilometers by multiplying by 1.609344, the exact international (statute) mile.
MilesToKilometers(miles: Number) -> Number
double MilesToKilometers(double miles)
Parameters
| name | type | default | description |
|---|---|---|---|
| miles | Number | — | The value in miles. |
Returns
| result | Number |
Remarks
Nautical miles are a different unit and are not handled here.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Milliliters To Liters
FunctionConverts milliliters to liters by dividing by 1,000.
MillilitersToLiters(ml: Number) -> Number
double MillilitersToLiters(double ml)
Parameters
| name | type | default | description |
|---|---|---|---|
| ml | Number | — | The value in milliliters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Millimeters To Meters
FunctionConverts millimeters to meters by dividing by 1,000.
MillimetersToMeters(mm: Number) -> Number
double MillimetersToMeters(double mm)
Parameters
| name | type | default | description |
|---|---|---|---|
| mm | Number | — | The value in millimeters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Min
FunctionOverload 1 of 3
Min(a: Number, b: Number) -> Number
double Min(double a, double b)
Returns the smaller of two double-precision floating-point numbers.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | |
| b | Number | — |
Returns
| result | Number |
Overload 2 of 3
Min(x: Integer, y: Integer) -> Integer
int Min(int x, int y)
Gives the smaller of two whole numbers.
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Integer | — | The first number. |
| y | Integer | — | The second number. |
Returns
| result | Integer |
Overload 3 of 3
Min -> Low Accuracy Number
a: Low Accuracy Number
b: Low Accuracy Number
c: Low Accuracy Number
d: Low Accuracy Numberfloat Min(float a, float b, float c, float d)
Min from 4 numbers.
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Low Accuracy Number | — | |
| b | Low Accuracy Number | — | |
| c | Low Accuracy Number | — | |
| d | Low Accuracy Number | — |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Min Magnitude
FunctionReturns the smaller magnitude of two double-precision floating-point numbers.
MinMagnitude(a: Number, b: Number) -> Number
double MinMagnitude(double a, double b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | |
| b | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Minutes To Seconds
FunctionConverts minutes to seconds by multiplying by 60.
MinutesToSeconds(m: Number) -> Number
double MinutesToSeconds(double m)
Parameters
| name | type | default | description |
|---|---|---|---|
| m | Number | — | The value in minutes. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Mod
FunctionMod and wrap around to be always positive.
Computes a modulo that handles negative numbers correctly.
Mod(value: Integer, modulo: Integer) -> Integer
int Mod(int value, int modulo)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Integer | — | |
| modulo | Integer | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Modulus
FunctionReturns the remainder of division of one number by another.
Modulus(dividend: Number, divisor: Number) -> Number
double Modulus(double dividend, double divisor)
Parameters
| name | type | default | description |
|---|---|---|---|
| dividend | Number | — | The number to be divided. |
| divisor | Number | — | The number by which to divide. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Multiply
FunctionMultiplies two numbers and returns the product.
Multiply(factor1: Number, factor2: Number) -> Number
double Multiply(double factor1, double factor2)
Parameters
| name | type | default | description |
|---|---|---|---|
| factor1 | Number | — | The first number to multiply. |
| factor2 | Number | — | The second number to multiply. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Nearly Equal
FunctionTells 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).
NearlyEqual(a: Number, b: Number) -> Truth
bool NearlyEqual(double a, double b)
Parameters
| name | type | default | description |
|---|---|---|---|
| a | Number | — | The first number. |
| b | Number | — | The second number. |
Returns
| result | Truth |
Remarks
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.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Negate
FunctionFlips the sign of a number, turning positive into negative and negative into positive.
Negate(value: Number) -> Number
double Negate(double value)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | The number to negate. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Newtons To Pound Force
FunctionConverts newtons to pounds-force by dividing by 4.4482216152605, the exact pound-force.
NewtonsToPoundForce(n: Number) -> Number
double NewtonsToPoundForce(double n)
Parameters
| name | type | default | description |
|---|---|---|---|
| n | Number | — | The value in newtons. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Not Equal
FunctionDetermines whether the first double is not equal to the second double.
NotEqual(first: Number, second: Number) -> Truth
bool NotEqual(double first, double second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Number | — | The first double to compare. |
| second | Number | — | The second double to compare. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Pascals To Atm
FunctionConverts pascals to standard atmospheres by dividing by 101,325, the exact standard atmosphere.
PascalsToAtm(pa: Number) -> Number
double PascalsToAtm(double pa)
Parameters
| name | type | default | description |
|---|---|---|---|
| pa | Number | — | The value in pascals. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Pascals To Bar
FunctionConverts pascals to bar by dividing by 100,000.
PascalsToBar(pa: Number) -> Number
double PascalsToBar(double pa)
Parameters
| name | type | default | description |
|---|---|---|---|
| pa | Number | — | The value in pascals. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Pascals To Kilopascals
FunctionConverts pascals to kilopascals by dividing by 1,000.
PascalsToKilopascals(pa: Number) -> Number
double PascalsToKilopascals(double pa)
Parameters
| name | type | default | description |
|---|---|---|---|
| pa | Number | — | The value in pascals. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Pound Force To Newtons
FunctionConverts pounds-force to newtons by multiplying by 4.4482216152605, the exact pound-force.
PoundForceToNewtons(lbf: Number) -> Number
double PoundForceToNewtons(double lbf)
Parameters
| name | type | default | description |
|---|---|---|---|
| lbf | Number | — | The value in pounds-force. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Pounds To Kilograms
FunctionConverts pounds to kilograms by multiplying by 0.45359237, the exact avoirdupois pound.
PoundsToKilograms(lb: Number) -> Number
double PoundsToKilograms(double lb)
Parameters
| name | type | default | description |
|---|---|---|---|
| lb | Number | — | The value in pounds. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Power
FunctionRaises a base number to the specified exponent.
Power(base: Number, exponent: Number) -> Number
double Power(double base, double exponent)
Parameters
| name | type | default | description |
|---|---|---|---|
| base | Number | — | The base number. |
| exponent | Number | — | The exponent to raise the base to. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Radians To Degrees
FunctionConverts radians to degrees by multiplying by 180/π.
RadiansToDegrees(radians: Number) -> Number
double RadiansToDegrees(double radians)
Parameters
| name | type | default | description |
|---|---|---|---|
| radians | Number | — | The value in radians. |
Returns
| result | Number |
Remarks
Use it to show the result of a trigonometry node, which works in radians, in degrees; no wrapping into one turn is done.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Rand2
FunctionRandom number generator taking two seeds; rand2(p,q) = rand2(q,p) is important
Rand2(p: Number, q: Number) -> Number
double Rand2(double p, double q)
Parameters
| name | type | default | description |
|---|---|---|---|
| p | Number | — | |
| q | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Reciprocal Estimate
FunctionReturns an estimate of the reciprocal of a specified number.
ReciprocalEstimate(d: Number) -> Number
double ReciprocalEstimate(double d)
Parameters
| name | type | default | description |
|---|---|---|---|
| d | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Reciprocal Sqrt Estimate
FunctionReturns an estimate of the reciprocal square root of a specified number.
ReciprocalSqrtEstimate(d: Number) -> Number
double ReciprocalSqrtEstimate(double d)
Parameters
| name | type | default | description |
|---|---|---|---|
| d | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Repeat01
FunctionRepeats 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.
Repeat01(x: Low Accuracy Number) -> Low Accuracy Number
float Repeat01(float x)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Low Accuracy Number | — | The number to repeat. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Root
FunctionReturns the specified root of a given number.
Root(radicand: Number, degree: Number) -> Number
double Root(double radicand, double degree)
Parameters
| name | type | default | description |
|---|---|---|---|
| radicand | Number | — | The number whose root is to be calculated. |
| degree | Number | — | The degree of the root. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Round
FunctionOverload 1 of 4
Round(number: Number) -> Number
double Round(double number)
Rounds a double-precision floating-point value to the nearest integral value, and rounds midpoint values to the nearest even number.
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
Overload 2 of 4
Round(number: Number, digits: Integer) -> Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — | |
| digits | Integer | — |
Returns
| result | Number |
Overload 3 of 4
Round -> Number
number: Number
digits: Integer
mode: MidpointRoundingdouble Round(double number, int digits, MidpointRounding mode)
Rounds a double-precision floating-point value to a specified number of fractional digits using the specified rounding convention.
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — | |
| digits | Integer | — | |
| mode | MidpointRounding | — |
Returns
| result | Number |
Overload 4 of 4
Round(number: Number, mode: MidpointRounding) -> Number
double Round(double number, MidpointRounding mode)
Rounds a double-precision floating-point value to an integer using the specified rounding convention.
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — | |
| mode | MidpointRounding | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Scale B
FunctionReturns x * 2^n computed efficiently.
ScaleB(number: Number, n: Integer) -> Number
double ScaleB(double number, int n)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — | |
| n | Integer | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Seconds To Hours
FunctionConverts seconds to hours by dividing by 3,600.
SecondsToHours(s: Number) -> Number
double SecondsToHours(double s)
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Number | — | The value in seconds. |
Returns
| result | Number |
Remarks
The result is fractional, so 5,400 seconds gives 1.5 hours.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Seconds To Minutes
FunctionConverts seconds to minutes by dividing by 60.
SecondsToMinutes(s: Number) -> Number
double SecondsToMinutes(double s)
Parameters
| name | type | default | description |
|---|---|---|---|
| s | Number | — | The value in seconds. |
Returns
| result | Number |
Remarks
The result is fractional, so 90 seconds gives 1.5 minutes.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Sign
FunctionReturns an integer that indicates the sign of a double-precision floating-point number.
Sign(number: Number) -> Number
double Sign(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Sin
FunctionReturns the sine of the specified angle.
Sin(angleRadians: Number) -> Number
double Sin(double angleRadians)
Parameters
| name | type | default | description |
|---|---|---|---|
| angleRadians | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Sin Cos
FunctionReturns the sine and cosine of the specified angle.
SinCos(angle: Number) -> (Number, Number)
(double, double) SinCos(double angle)
Parameters
| name | type | default | description |
|---|---|---|---|
| angle | Number | — |
Returns
| result | (Number, Number) |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Sin Degrees
FunctionReturns the sine of the specified angle.
SinDegrees(angleDegrees: Number) -> Number
double SinDegrees(double angleDegrees)
Parameters
| name | type | default | description |
|---|---|---|---|
| angleDegrees | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Sinh
FunctionReturns the hyperbolic sine of the specified angle.
Sinh(angle: Number) -> Number
double Sinh(double angle)
Parameters
| name | type | default | description |
|---|---|---|---|
| angle | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Smaller Than
FunctionDetermines whether the first double is less than the second double.
SmallerThan(first: Number, second: Number) -> Truth
bool SmallerThan(double first, double second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Number | — | The first double to compare. |
| second | Number | — | The second double to compare. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Smaller Than Or Equal
FunctionDetermines whether the first double is less than or equal to the second double.
SmallerThanOrEqual(first: Number, second: Number) -> Truth
bool SmallerThanOrEqual(double first, double second)
Parameters
| name | type | default | description |
|---|---|---|---|
| first | Number | — | The first double to compare. |
| second | Number | — | The second double to compare. |
Returns
| result | Truth |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Smoother Step
FunctionEases 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.
SmootherStep(t: Number) -> Number
double SmootherStep(double t)
Parameters
| name | type | default | description |
|---|---|---|---|
| t | Number | — | The input; it is clamped to 0 to 1 first. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Smooth Step
FunctionOverload 1 of 3
SmoothStep -> Number
edge0: Number
edge1: Number
value: Numberdouble 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| edge0 | Number | — | The value at which the output starts to rise from 0. |
| edge1 | Number | — | The value at which the output reaches 1. |
| value | Number | — | The value to test. |
Returns
| result | Number |
Remarks
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.
Overload 2 of 3
SmoothStep(t: Number) -> Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| t | Number | — | The input, expected from 0 to 1. |
Returns
| result | Number |
Remarks
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.
Overload 3 of 3
SmoothStep -> Low Accuracy Number
edge0: Low Accuracy Number
edge1: Low Accuracy Number
x: Low Accuracy Numberfloat 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.
Parameters
| name | type | default | description |
|---|---|---|---|
| edge0 | Low Accuracy Number | — | The value at which the output starts to rise from 0. |
| edge1 | Low Accuracy Number | — | The value at which the output reaches 1. |
| x | Low Accuracy Number | — | The value to test. |
Returns
| result | Low Accuracy Number |
Remarks
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.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Smooth Step01
FunctionOverload 1 of 2
SmoothStep01(x: Number) -> Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Number | — | The input; it is clamped to 0 to 1 first. |
Returns
| result | Number |
Overload 2 of 2
SmoothStep01(x: Low Accuracy Number) -> Low Accuracy Number
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)
Parameters
| name | type | default | description |
|---|---|---|---|
| x | Low Accuracy Number | — |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Smooth Step Range
FunctionThis node carries no documentation.
SmoothStepRange -> Low Accuracy Number
edge0: Low Accuracy Number
edge1: Low Accuracy Number
x: Low Accuracy Numberfloat SmoothStepRange(float edge0, float edge1, float x)
Parameters
| name | type | default | description |
|---|---|---|---|
| edge0 | Low Accuracy Number | — | |
| edge1 | Low Accuracy Number | — | |
| x | Low Accuracy Number | — |
Returns
| result | Low Accuracy Number |
Remarks
Matches the common GLSL/HLSL-style API.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Square Kilometers To Square Meters
FunctionConverts square kilometers to square meters by multiplying by 1,000,000.
SquareKilometersToSquareMeters(km2: Number) -> Number
double SquareKilometersToSquareMeters(double km2)
Parameters
| name | type | default | description |
|---|---|---|---|
| km2 | Number | — | The value in square kilometers. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Square Meters To Acres
FunctionConverts square meters to acres by dividing by 4,046.8564224, the international acre.
SquareMetersToAcres(m2: Number) -> Number
double SquareMetersToAcres(double m2)
Parameters
| name | type | default | description |
|---|---|---|---|
| m2 | Number | — | The value in square meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Square Meters To Square Kilometers
FunctionConverts square meters to square kilometers by dividing by 1,000,000.
SquareMetersToSquareKilometers(m2: Number) -> Number
double SquareMetersToSquareKilometers(double m2)
Parameters
| name | type | default | description |
|---|---|---|---|
| m2 | Number | — | The value in square meters. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Square Root
FunctionReturns the square root of a specified number.
SquareRoot(number: Number) -> Number
double SquareRoot(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Subtract
FunctionSubtracts the second number from the first and returns the result.
Subtract(minuend: Number, subtrahend: Number) -> Number
double Subtract(double minuend, double subtrahend)
Parameters
| name | type | default | description |
|---|---|---|---|
| minuend | Number | — | The number to subtract from. |
| subtrahend | Number | — | The number to subtract. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Tan
FunctionReturns the tangent of the specified angle.
Tan(number: Number) -> Number
double Tan(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Tanh
FunctionReturns the hyperbolic tangent of the specified angle.
Tanh(number: Number) -> Number
double Tanh(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
To Byte01
FunctionOverload 1 of 2
ToByte01(value: Number) -> Byte
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Number | — | The normalized value, expected from 0 to 1. |
Returns
| result | Byte |
Remarks
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.
Overload 2 of 2
ToByte01(value: Low Accuracy Number) -> Byte
byte ToByte01(float value)
Convert and clamp normalized float values.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Low Accuracy Number | — | [0-1] Range |
Returns
| result | Byte |
Remarks
Not the same as NumberRoutines.ClampToByteSize!
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
To Degrees
FunctionConverts an angle from radians to degrees (multiplying by 180/π) in single precision.
ToDegrees(radians: Low Accuracy Number) -> Low Accuracy Number
float ToDegrees(float radians)
Parameters
| name | type | default | description |
|---|---|---|---|
| radians | Low Accuracy Number | — | The angle in radians; no wrapping into one turn is done. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
To Radians
FunctionConverts an angle from degrees to radians (multiplying by π/180) in single precision, for passing degree angles to trigonometry that works in radians.
ToRadians(degrees: Low Accuracy Number) -> Low Accuracy Number
float ToRadians(float degrees)
Parameters
| name | type | default | description |
|---|---|---|---|
| degrees | Low Accuracy Number | — | The angle in degrees; no wrapping into one turn is done. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Truncate
FunctionCalculates the integral part of a specified double-precision floating-point number.
Truncate(number: Number) -> Number
double Truncate(double number)
Parameters
| name | type | default | description |
|---|---|---|---|
| number | Number | — |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Watts To Horsepower
FunctionConverts watts to horsepower by dividing by 745.699872, the mechanical (imperial) horsepower.
WattsToHorsepower(w: Number) -> Number
double WattsToHorsepower(double w)
Parameters
| name | type | default | description |
|---|---|---|---|
| w | Number | — | The value in watts. |
Returns
| result | Number |
Remarks
Metric horsepower (PS, about 735.5 W) is a different unit and is not handled here.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Watts To Kilowatts
FunctionConverts watts to kilowatts by dividing by 1,000.
WattsToKilowatts(w: Number) -> Number
double WattsToKilowatts(double w)
Parameters
| name | type | default | description |
|---|---|---|---|
| w | Number | — | The value in watts. |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Wrap
FunctionWraps 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.
Wrap -> Low Accuracy Number
value: Low Accuracy Number
size: Integerfloat Wrap(float value, int size)
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Low Accuracy Number | — | The coordinate to wrap. |
| size | Integer | — | The length of the range, such as an image width in pixels. |
Returns
| result | Low Accuracy Number |
Remarks
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.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library
Wrap01
FunctionOverload 1 of 2
Wrap01(t: Number) -> Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| t | Number | — | The number to wrap. |
Returns
| result | Number |
Overload 2 of 2
Wrap01(value: Low Accuracy Number) -> Low Accuracy Number
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.
Parameters
| name | type | default | description |
|---|---|---|---|
| value | Low Accuracy Number | — | The number to wrap. |
Returns
| result | Low Accuracy Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Number Routines
- Package
- Standard Library