Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abs does not takes double as argument #655

Open
Vasya-M opened this issue May 28, 2021 · 0 comments
Open

abs does not takes double as argument #655

Vasya-M opened this issue May 28, 2021 · 0 comments

Comments

@Vasya-M
Copy link
Contributor

Vasya-M commented May 28, 2021

in interpreter:

brs> ?abs(1.1222222222222)
REPL(1,20-21): Provided arguments don't match Abs's signature.
    function Abs(x as Float) as Float:
        * Argument 'x' must be of type Float, but received Double.

But in brightscript it works, and abs will truncate it to float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant