I'm no C - programmer but maybe the operands for the division need to be doubles for a result to return a double?
dValueResult = dValueWidth / dValueLength
(or perhaps only one of the two)
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. "
- Murphy MacManus (Boondock Saints)
|