jcoplien / trygve

The trygve language project - Building a DCI-centric language from the ground up
GNU General Public License v2.0
103 stars 15 forks source link

Math.round method is not accepting argument of type double #118

Closed hvaldecantos closed 5 years ago

hvaldecantos commented 5 years ago
{
    double n = 2.34
    int i = Math.round(n)
    System.out.println(i)
}

line 3: Type of actual parameter `n' (double) in call of `round' does not match type of formal parameter `x' (int x)
Compilation complete
1 errors