ProtoFlux:Base Value: Difference between revisions

From Resonite Wiki
Created a page for the Base Value node.
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
|}}
|}}


The '''Base Value''' node takes in a unit of measurement as its type and returns a [[Type:double|double]] value of the base value of the provided type.
The '''Base Value''' node takes in a value as a [[Quantity Types|quantity type]] and returns the corresponding base value as a [[Type:double|double]].


To create a node within this category, keep in mind you want to type <code>QuantityX.</code> at the beginning of your search, and then the unit you want to use. Examples: <code>QuantityX.Mass</code>, <code>QuantityX.Time</code>, and <code>QuantityX.Voltage</code>.
To create this node, you need to specify a valid [[Quantity Types|quantity type]] for its generic parameter. Examples: <code>Mass</code>, <code>Time</code>, and <code>Voltage</code>.


== Inputs ==
== Inputs ==


=== Value (Pseudo-Generic) ===  
=== Value ([[Quantity Types|Quantity]]) ===  


The unit of measurement type value.
The quantity value.


== Outputs ==
== Outputs ==
Line 26: Line 26:
=== * ([[Type:double|double]]) ===
=== * ([[Type:double|double]]) ===


The base amount of that provided type.  
The base value of the quantity, in the quantity type's base unit. (See [[Quantity Types#Quantity Types|Quantity Types]] for a list of all quantity types and their corresponding base units)


[[Category:ProtoFlux:Math:Quantity]]
[[Category:ProtoFlux:Math:Quantity]]

Latest revision as of 14:53, 8 September 2024

Base Value <Type>
Value
*
Quantity

The Base Value node takes in a value as a quantity type and returns the corresponding base value as a double.

To create this node, you need to specify a valid quantity type for its generic parameter. Examples: Mass, Time, and Voltage.

Inputs

Value (Quantity)

The quantity value.

Outputs

* (double)

The base value of the quantity, in the quantity type's base unit. (See Quantity Types for a list of all quantity types and their corresponding base units)