F
FrankVDL
Hi,
I have some problems with the default rounding method of C#
check an earlier post of my :
http://groups.google.be/group/micro...ffbddf/a410c5e788c35f06?l=nl#a410c5e788c35f06
To create a workaround for this problem, I wan't to create my own
double type !
the 'Double2' would act like a standard double but when assinging a
value to it, it will always my own rounding method to round the value
to 2 decimals.
Double2 d = 1.235;
d -> 1.23;
How can I create my own type like this ?
Kind regards
Frank Vandelinden
I have some problems with the default rounding method of C#
check an earlier post of my :
http://groups.google.be/group/micro...ffbddf/a410c5e788c35f06?l=nl#a410c5e788c35f06
To create a workaround for this problem, I wan't to create my own
double type !
the 'Double2' would act like a standard double but when assinging a
value to it, it will always my own rounding method to round the value
to 2 decimals.
Double2 d = 1.235;
d -> 1.23;
How can I create my own type like this ?
Kind regards
Frank Vandelinden