Skip to content

Number fromhex() #1941

Open
Open
@dpatel20

Description

@dpatel20

In the documentation forFields.Number it mentions fromhex(). It is not clear to me how I can trigger that.

I would like to convert a hex-like string (e.g. 0x7AB) to a number and check that a non-hex-like string has not been given.

Essentially, is there a built-in way to deserialise/validate a hex-like string or would I need to use Fields.Method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions