[gambit-list] ffi double constants
Álvaro Castro-Castilla
alvaro.castro.castilla at gmail.com
Mon Feb 20 06:42:21 EST 2012
Hi,
I want to use the M_PI constant, which is defined in C as #define M_PI
3.14159265358979323846, with 21 decimals. For the Cairo bindings, the
full precision is needed, because drawing a circle is done by drawing
an arc 2*M_PI long, and the algorithm only considers it a circle when
the 2*pi is passed with the proper precision.
What's the way to support this precision for the FFI bindings, so I
can pass that value to the affected functions as it is done in C
without a special wrapper function for each case?
Best regards,
Álvaro
More information about the Gambit-list
mailing list