[Gambas-user] Modulo operator returns wrong results

Jesus ea7dfh at ...2382...
Wed Sep 25 01:23:26 CEST 2013


I've been racking my brain with a simple problem and I've discovered 
something weird with "Mod" operator, returning wrong results.

For example, -3 Mod 800 gives -3, and it should be 797.

It's only me or someone else has wrong results?

Here are my settings, thanks in advance.


Gambas3 from SVN: 3.4.90 r5847

[System]
OperatingSystem=Linux
Kernel=3.2.0-23-generic
Architecture=x86_64
Distribution=Linux Mint 13 Maya
Desktop=GNOME
Theme=QPlastique
Language=es_ES.UTF-8
Memory=16034M
[Libraries]
Cairo=libcairo.so.0.0.0
Cairo=libcairo.so.2.11000.2
Curl=libcurl.so.4.2.0
DBus=libdbus-1.so.3.5.8
GStreamer=libgstreamer-0.10.so.0.30.0
GTK+=libgtk-x11-2.0.so.0.2400.10
Poppler=libpoppler.so.19.0.0
Qt4=libQtCore.so.4.8.1
SDL=libSDL-1.2.so.0.11.3


Regards
-- 
Jesus Guardon




More information about the User mailing list