crypto icon indicating copy to clipboard operation
crypto copied to clipboard

`abs` does not takes double as argument

Open Vasya-M opened this issue 4 years ago • 0 comments

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

Vasya-M avatar May 28 '21 10:05 Vasya-M