+
Skip to content

Arithmetic expressions should handle floating point numbers #70

Open
@darioteixeira

Description

@darioteixeira

On GPP 2.28:

gpp <(echo -e '#define FOO #eval 2+2\nFOO')

Correctly outputs 4. But what if we use a floating point number instead of an integer?

gpp <(echo -e '#define FOO #eval 2.1+2\nFOO')

Outputs 2.1+2!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载