FORMAT X AND Y VALUES OF THE CURVE

Applies printf-style format strings to the X and Y point values of a curve, controlling numeric precision and display format. Use this worker when you need to round, pad, or reformat curve coordinates before export or reporting.

When to use

Classification: process.

Tagged: curve, format, points, precision, printf, transform.

Inputs

Label ID Type Default Required Description
Curve curve vector   Curve to be formatted <a class=’btn btn-xs btn-default’ target=’_blank’ href=’https://www.d3view.com/docs/master/workflows/Glossary.html#curveinput’> <i class=’fa fa-external-link’> </i> View more </a>
X Format x_format scalar %s   Printf-style format string applied to every X-axis point (e.g. ‘%.4f’ for 4 decimal places); defaults to ‘%s’ which leaves values unchanged.
Y Format y_format scalar %s   Printf-style format string applied to every Y-axis point (e.g. ‘%.4f’ for 4 decimal places); defaults to ‘%s’ which leaves values unchanged.

Outputs

Label ID Type Description
Curve Formatted curve_formatted vector  

Disciplines

  • data.curve.transform

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_format_points


Auto-generated from transformation schema. Worker id: curve_format_points. Schema hash: 7b6c676a0feb. Hand-curated docs in workerexamples/ override this page when present.