[Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error....
Ru Vuott
vuott at ...325...
Thu Jun 27 20:21:01 CEST 2013
Well, so aritmetic operator \ doesn't accept float numbers.
Thank you, Jussi
bye
vuottttt
--------------------------------------------
Gio 27/6/13, Jussi Lahtinen <jussi.lahtinen at ...626...> ha scritto:
Oggetto: Re: [Gambas-user] 16 \ 2 ^ 3 = ...Type mismatich error....
A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Cc: "Benoit" <gambas at ...1...>
Data: Giovedì 27 giugno 2013, 20:00
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
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list