T
Terry
I have x as double, hh as int32
in VBA I can perfom hh=Int(x) (narrowing conversion but disallowed in .NET)
One example in .NET is hh = System.Convert.ToInt32(x)
Could I use IConvertible and how would I code this?
Which is the better method keeping in mind that I would also be coding
calculations in hours/minutes/seconds, degress/minutes/seconds, radians and
logarithms. I would not want to lose too much precision in my results.
Regards
in VBA I can perfom hh=Int(x) (narrowing conversion but disallowed in .NET)
One example in .NET is hh = System.Convert.ToInt32(x)
Could I use IConvertible and how would I code this?
Which is the better method keeping in mind that I would also be coding
calculations in hours/minutes/seconds, degress/minutes/seconds, radians and
logarithms. I would not want to lose too much precision in my results.
Regards