pub fn format_number_value(
value: f64,
ty: NumericType,
) -> Result<String, FormatNumericTypeError>
Expand description
For UI code generation, format a number value with a suffix such that the result can parse as a literal. If it can’t be done, returns an error.
This is used by TS.