Nancy,
I'm not sure what is data range is but field under/overflow could make it do flakey things.
>Is it possible the someval <> 0 because it's very small, but the division formats the return value and loses decimal precision? Probably this is totally off the wall...