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 ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user