Skip to content

Scientific Notation not Supported #235

@stephensj2

Description

@stephensj2

Solidity allows users to express large numbers in scientific notation like so:
x = 2.5e1;
Such an assignment is relatively common in tokens as they make specifying large numbers such as the token limit easy. However, when VeriSol tries to translate such a value, it throws the following error:
VeriSol translation error: The value could not be parsed.

It would be useful if VeriSol could identify the value that caused the translation error if this construct was difficult to support. A test case is given below.

test.txt

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