Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3747

FigureShape Methods with Single parameters

$
0
0

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.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3747

Trending Articles