Skip to content

Support BigNumber as wordSize in function format #3142

@bornova

Description

@bornova

Describe the bug
Currently, the function format does not support a BigNumber as wordSize

To Reproduce
See following example:

// With math.config({ number: 'BigNumber' })
math.evaluate(format(-830, { notation: "hex", wordSize: 32 }))  // Error: Option "wordSize" must be a number

In reference to: #3137 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions