Skip to content

initBigInt converts minus sign "-" to zero. #116

@calroc

Description

@calroc

If you convert a string consisting of a single minus sign to a BigInt you get zero.

import bigints

let x = "-".initBigInt

echo x

This program prints

0

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