ProtoFlux:FormatQuantity: Difference between revisions

From Resonite Wiki
Updated description and linked to new quantity types page. "QuantityX" doesn't exist in Resonite.
m YoshBot moved page ProtoFlux:Format Quantity to ProtoFlux:FormatQuantity: Automated: removing spaces from ProtoFlux namespace
 
(No difference)

Latest revision as of 00:19, 21 August 2025

Format Quantity <Type>
Value
*
FormatUnit
FormatNumber
UseLongNames
Quantity

The Format Quantity node takes in value as a quantity type, the unit in which the quantity should be displayed as a string, as well as wether to use the unit's long name instead of the short form. It returns a formatted string containing the quantity value in the specified unit.

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.

FormatUnit (string)

The unit in which the quantity should be displayed.

FormatNumber (string)

A format string for the number of the quantity.

UseLongNames (bool)

Wether to use the unit's long name instead of the short form.

Outputs

* (double)

The formatted string of that provided unit type.