L
Laphan
Hi All
I understand that all asp classic vars are variants and to always make sure
that you are working with the type that you want it is best to use these
built-in Cxx() functions, but I'm confused about whether I should use CSng
or CDbl for my calcs.
I don't think they will ever be more than say 6 decimal places (at the very
most usually 2 or 3) and the value the other way won't be in the millions
(chance would be a fine thing!!) so should I be using CSng or CDbl?
Is there any kind of performance degradation in using one over the other?
Is there any kind of accuracy degradation in using one over the other?
Your comments would be appreciated.
Rgds Laphan
I understand that all asp classic vars are variants and to always make sure
that you are working with the type that you want it is best to use these
built-in Cxx() functions, but I'm confused about whether I should use CSng
or CDbl for my calcs.
I don't think they will ever be more than say 6 decimal places (at the very
most usually 2 or 3) and the value the other way won't be in the millions
(chance would be a fine thing!!) so should I be using CSng or CDbl?
Is there any kind of performance degradation in using one over the other?
Is there any kind of accuracy degradation in using one over the other?
Your comments would be appreciated.
Rgds Laphan