Re: event pressure:
Re: event pressure:
- Subject: Re: event pressure:
- From: glenn andreas <email@hidden>
- Date: Sun, 11 Dec 2005 14:34:03 -0600
On Dec 11, 2005, at 2:31 PM, Jonathan Chetwynd wrote:
NSLog(@"pressure: %d ", [event pressure]);
the output values are far too high: ~ 1080795136 or 1072693248
supposedly between 0 & 1
cheers
Jonathan Chetwynd
Accessible Solutions
http://www.eas-i.co.uk
%d is for integer values, and so it is treating the floating point
result as bunch of bits set in an integer.
Try %g instead
Glenn Andreas email@hidden
<
http://www.gandreas.com/> wicked fun!
Widgetarium | the quickest path to widgets
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden