ProtoFlux:Format Quantity

From Resonite Wiki
Revision as of 22:46, 1 July 2024 by AmasterAmaster (talk | contribs) (Created a page for the Format Quantity node.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Format Quantity <Type>
Value
*
FormatUnit
FormatNumber
UseLongNames
Quantity

The Format Quantity node takes in a unit of measurement as its type, along with the string formats to decorate the output string, as well as an option to use long names. Then it returns a string formatted in a way that shows the unit and amount.

To create a node within this category, keep in mind you want to type QuantityX. at the beginning of your search, and then the unit you want to use. Examples: QuantityX.Mass, QuantityX.Time, and QuantityX.Voltage.

Inputs

Value (Pseudo-Generic)

The unit of measurement type value.

FormatUnit (string)

The string used to format the unit in a certain way.

FormatNumber (string)

The string used to format the number in a certain way.

UseLongNames (bool)

Should we use long names for this unit?

Outputs

* (double)

The formatted string of that provided unit type.