Re: float error...
Re: float error...
- Subject: Re: float error...
- From: David DeHaven <email@hidden>
- Date: Mon, 25 Mar 2002 12:11:58 -0600
IEEE floats are base 2 numbers, so it's not possible to precisely
represent all base 10 real numbers.
You could step by 0.01 if you modified your code to round instead of
truncate when fetching a parameter value.
Indeed, that's where the problem was. For some reason, I was fixated
on the volume setting side of things... not the volume getting side.
I added a bit of code to round properly and it works like a champ now.
-DrD-
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.