Skip to content

Clarify what action to take when unpacking an int #374

@mankoff

Description

@mankoff

In Chapter 8. Reduction of Dataset Size section 8.1. Packed Data on line 18 https://github.com/cf-convention/cf-conventions/blob/main/ch08.adoc#L18 it states,

It is not advised to unpack an int into a float as there is a potential precision loss.

This is a warning about what not to do, but does not provide a suggestion of what should be done. Does this mean unpacked data should be type int? Or type double? I suggest re-wording to provide positive advice (if there is a simple thing that should be done), rather than negative advice. The 'not advised' is appropriate language if there are many possible correct actions that could be taken.

If someone can offer clarity, I will issue a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectConventions text meaning not as intended, misleading, unclear, has typos, format or language errors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions