FigureShape Methods with Single parameters

FigureShape methods – AddCubic, AddLine, AddQuad – all take Singles as Parameters rather than Doubles. This just seems to be a little peculiar. Is there a specific reason for this?

When the Xojo Documentation discusses Singles it generally seems to discourage their use:

In nearly all cases you should use a Double instead of a Single. The only practical

cases where you ought to use a Single is when you need to specifically pass a

Single-precision floating point number to an external function using a Declare.

could be the library behind or because we just need them to draw at the size of few screens.

I apologise for the fact that I reported this as a “bug” a year ago in Feedback, and it is recognized as such so this posting has no real purpose. It does establish that my memory is not that great.

1 Like