[Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error....

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Jun 27 20:00:16 CEST 2013


 x \ y doesn't take floats (x / y however does), and exponent will return
float instead of integer.
Not sure this is what Benoit intended. I would expect automatic conversion,
though that might lead to hidden unexpected behaviour which is worse.

This should work:
Print 16 \ cint(2 ^ 3)


Jussi



More information about the User mailing list