M
Mac
Hello,
I've a function defined like this:
Public Function DegsToRads(ByVal degrees As Single) As Single
DegreesToRadians = degrees / 57.29578
End Function
and use it like this:
angleDeg = RadsToDegs(angle)
both angle and angleDeg defined as Single; but all Iget is a 0 ..even when
in debug mode I can see that inside DegsToRads the value gets meaningful,
upon exit from DegsToRads I get zero again..it drives me nuts! What might be
wrong here?
I've a function defined like this:
Public Function DegsToRads(ByVal degrees As Single) As Single
DegreesToRadians = degrees / 57.29578
End Function
and use it like this:
angleDeg = RadsToDegs(angle)
both angle and angleDeg defined as Single; but all Iget is a 0 ..even when
in debug mode I can see that inside DegsToRads the value gets meaningful,
upon exit from DegsToRads I get zero again..it drives me nuts! What might be
wrong here?