Skip to content

Float32.toText and Float32.format produce version-dependent output #478

@ggreif

Description

@ggreif

Float32.toText and Float32.format produce output that varies between moc versions and runtime configurations, making their doc examples non-assertable.

Currently both examples are marked no-validate for this reason:

  • Float32.toText(1.5) — the text representation may differ (e.g. "1.5" vs other formats)
  • Float32.format(123.0, #exp 3) — the exponential format string may differ

This is analogous to Float.toText and Float.format which have the same no-validate treatment.

It would be worth stabilizing the output of these functions across moc versions, or at least documenting the exact guarantees. Tracked here so the no-validate annotations can eventually be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions