Hi all, esp. Michael Watterson,
While adding comments to the math library I think I found an error in
one of the routine:
-- Original: Michael Watterson
function round_fixed(sword in fixed_point) return sbyte is
if ((fixed_point & 0x10) > 0) then -- 128 and more = 0.5
return (sbyte(fixed_point >> 8) + 1)
else
return (sbyte(fixed_point >> 8))
end if
end function
I think the 'if' statement should be:
if ((fixed_point & 0x80) > 0) then
Do you agree or do I misunderstand the fixed point notation?
Regards, Rob.
--
R. Hamerling, Netherlands --- http://www.robh.nl
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jallib?hl=en.