[go-nuts] Re: A possible issue with untyped literal numbers

2019-10-31 Thread Marc Vertes
fix it with: > > func main() { println(int(100) % 1e2) } > > Now 1e2 is converted to 'int' and all is well :) > > Alan > > On Thursday, October 31, 2019 at 5:13:48 PM UTC, Marc Vertes wrote: >> >> Hello, >> >> I see that the following code

[go-nuts] A possible issue with untyped literal numbers

2019-10-31 Thread Marc Vertes
Hello, I see that the following code func main() { println(100 % 1e2) } is rejected by the compiler with "invalid operation: operator % not defined on untyped float" but the following func main() { i := 100; println(i % 1e2) } is happily accepted. Should I open an issue on this ? What should