I
Ivan Demkovitch
Hi!
I'm working on porting some fairly complex code from VB to C#.
There is some calculations involved. Also, many numeric constants involved.
Like:
a = 1/b
I'm not sure if I need to write it like:
a = ((double)1/b) in C#?
Also, there is a lot of code where integers computed together with doubles.
Do I need to include (double) in front of each one? Is there any way to
write it shorter?
Like in VB I can 3# or CDbl(3)
What about C#?
Thanks a lot!
I'm working on porting some fairly complex code from VB to C#.
There is some calculations involved. Also, many numeric constants involved.
Like:
a = 1/b
I'm not sure if I need to write it like:
a = ((double)1/b) in C#?
Also, there is a lot of code where integers computed together with doubles.
Do I need to include (double) in front of each one? Is there any way to
write it shorter?
Like in VB I can 3# or CDbl(3)
What about C#?
Thanks a lot!