andres van Staveren

Show:

What's happening?

  • for next end prematurely using step

    The for next iteration ends sometimes prematurely when using a floating point step. For example the next code for i = 0 to n step .1 : ? i + " "; : next ends for each "n" as follows: 0, 0.9, 1.9, 3, 4, 5, 6, 7, 8, 9, 9.9, 10.9, 11.9 The n.9 values are not correct when compared to the behaviour of the for next iteration when using integer values i.e. the iteration is executed up to and...

    2009-09-30 12:48:35 UTC in SmallBASIC

  • RGB parameters are interchanged

    This defect pertains to version FLTK 0.10.5 ( the Group field doesn't allow you to select this value yet) The parameters for red and blue are interchanged In the RGB(r, g, b) and RGBF(r, g, b) functions color 15, rgb(128, 0, 0) results in white foreground on blue background, this should be white foreground on red background color 15, rgb(0, 0, 128) results in white foreground on red...

    2009-09-12 06:48:13 UTC in SmallBASIC

  • Save last main window dimensions

    I would like that the Smallbasic program remembers the current size of the main window after closing. Now I have to enlarge the main window every time. However, for other users this may be different. Just saving the last setting would therefore be a good solution.

    2009-09-12 06:22:40 UTC in SmallBASIC

  • Scientific notation defect

    This defect pertains to version FLTK 0.10.5 ( the Group field doesn't allow you to select this value yet) statement output result ? 0.123456 0.1.23456 OK ? 0.1234567 0.1.23457e+006 not OK ? 0.12345678 0.1.23457e+006 not OK ? 0.123456789 0.1.23457e+006...

    2009-09-12 06:10:20 UTC in SmallBASIC

  • Circle using aspect defect

    The "aspect" in the circle command is not working correctly beyond a certain value of r. w=3000 : window -w,w,w,-w : line -w,0,w,0 : line 0,-w,0,w r = 497 : circle 0,0, r : circle 0,0, r, 3 : circle 0,0, r, 0.333 ' correct shapes r = 900 : circle 0,0, r, 3 ' incorrect shape r = 1480 : circle 0,0, r, 0.333 ' incorrect shape.

    2009-06-09 21:08:58 UTC in SmallBASIC

  • Integer overflow

    The following code generates an integer overflow: R=1 ? "R=", R R=R + 2147483647 MOD 2147483648 ? "R=", R The result is: R= 1 R= -2147483648 This happens with all functions of variable type integer (e.g. LOF())

    2009-03-08 19:10:26 UTC in SmallBASIC

About Me

  • 2009-03-08 (8 months ago)
  • 2430679
  • driesnl (My Site)
  • andres van Staveren

Send me a message