rokucommunity / brs

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

The `mod` math remainder operator shall always truncate to the integer #8

Closed lvcabral closed 5 months ago

lvcabral commented 12 months ago

Even if both numbers are float or double the result should return the trucated integer in Roku.

Example below:

'In Roku
? type(7.6 mod 3.0)
Float
? 7.6 mod 3.0
 1
'In BRS
? type(7.6 mod 3.0)
Float
? 7.6 mod 3
 1.6
lvcabral commented 5 months ago

Closed by #46