sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

`abs` does not takes double as argument #655

Open Vasya-M opened 3 years ago

Vasya-M commented 3 years ago

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