[DGD]Casting to int

Serhat Sakarya serhat at freud.et.tudelft.nl
Sat Jul 1 01:26:42 CEST 2000


On Fri, 30 Jun 2000, E. Harte wrote:

> On Fri, 30 Jun 2000, Kris Van Hees wrote:
> 
[snip]
> 
> To each their own.  If you want the C/Java-like behaviour, do this:
> 
>   (int)(float_value - 0.5)    if float_value >= 0
>   (int)(float_value + 0.5)    if float_value <  0
> 
> Shouldn't be too hard to turn that into a nice #define or function.

Or you could just patch the driver sources to do what you want right away ;-)

Ok, probably not appreciated by some, but since the driver sources are
available, you have the freedom (considering you are the admin) to change
the rounding behaviour.

Regards,

Serhat Sakarya


List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list